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 |
|
||||
|-----|------------|-----------|---------------|-----------|
|
||||
| |peer |block | peer mhash | |
|
||||
| |peer |follow | peer mhash | |
|
||||
| |peer |show | | |
|
||||
| |peer |show | --blocked | |
|
||||
| |peer |unblock | peer mhash | |
|
||||
| |peer |unfollow | | |
|
||||
| |peers |list | | |
|
||||
| |peer |untrack | peer mhash | |
|
||||
| |blob |create | file path | |
|
||||
| |blob |create | pipe | |
|
||||
| |bundle |create | | |
|
||||
| |draft |create | | |
|
||||
| |blob |find | | |
|
||||
| |message |find | --all | |
|
||||
| |message |find | --last | |
|
||||
| |bundle |ingest | | |
|
||||
| |draft |create | | |
|
||||
| |draft |publish | | |
|
||||
| |draft |show | | |
|
||||
| |message |show | message mhash | |
|
||||
| |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 |create | | |
|
||||
| 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.
|
||||
func BootstrapCLI() {
|
||||
rootCmd.AddCommand(versionCmd)
|
||||
|
|
Loading…
Reference in New Issue