TODO: Bugfix: Prevent simultaneous BLOCK + FOLLOW.
This commit is contained in:
parent
b2979b9474
commit
8e11d8a006
22
README.md
22
README.md
|
@ -20,24 +20,22 @@ You can override this value by specifying a `PIGEON_PATH` ENV var.
|
||||||
|
|
||||||
|Done?|Noun |Verb | Flag / arg 1 | Flag 2 |
|
|Done?|Noun |Verb | Flag / arg 1 | Flag 2 |
|
||||||
|-----|------------|-----------|---------------|-----------|
|
|-----|------------|-----------|---------------|-----------|
|
||||||
| |peer |block | peer mhash | |
|
| |peers |list | | |
|
||||||
| |peer |follow | peer mhash | |
|
| |peer |untrack | peer mhash | |
|
||||||
| |peer |show | | |
|
|
||||||
| |peer |show | --blocked | |
|
|
||||||
| |peer |unblock | peer mhash | |
|
|
||||||
| |peer |unfollow | | |
|
|
||||||
| |blob |create | file path | |
|
| |blob |create | file path | |
|
||||||
| |blob |create | pipe | |
|
| |blob |create | pipe | |
|
||||||
| |bundle |create | | |
|
|
||||||
| |draft |create | | |
|
|
||||||
| |blob |find | | |
|
| |blob |find | | |
|
||||||
| |message |find | --all | |
|
| |draft |create | | |
|
||||||
| |message |find | --last | |
|
|
||||||
| |bundle |ingest | | |
|
|
||||||
| |draft |publish | | |
|
| |draft |publish | | |
|
||||||
| |draft |show | | |
|
| |draft |show | | |
|
||||||
| |message |show | message mhash | |
|
|
||||||
| |draft |update | --key=? | --value=? |
|
| |draft |update | --key=? | --value=? |
|
||||||
|
| |message |find | --all | |
|
||||||
|
| |message |find | --last | |
|
||||||
|
| |message |show | message mhash | |
|
||||||
|
| |bundle |create | | |
|
||||||
|
| |bundle |ingest | | |
|
||||||
|
| X |peer |block | peer mhash | |
|
||||||
|
| X |peer |follow | peer mhash | |
|
||||||
| X |identity |show | | |
|
| X |identity |show | | |
|
||||||
| X |identity |create | | |
|
| X |identity |create | | |
|
||||||
| X |help | | | |
|
| X |help | | | |
|
||||||
|
|
|
@ -75,6 +75,16 @@ var peerBlockCmd = &cobra.Command{
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var peerFollowCmd = &cobra.Command{
|
||||||
|
Use: "follow",
|
||||||
|
Short: "Follow a peer and replicate their feed when possible.",
|
||||||
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
|
mHash := validateMhash(args[0])
|
||||||
|
addPeer(mHash, following)
|
||||||
|
fmt.Printf("Following %s\n", mHash)
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
// BootstrapCLI wires up all the relevant commands.
|
// BootstrapCLI wires up all the relevant commands.
|
||||||
func BootstrapCLI() {
|
func BootstrapCLI() {
|
||||||
rootCmd.AddCommand(versionCmd)
|
rootCmd.AddCommand(versionCmd)
|
||||||
|
|
Loading…
Reference in New Issue