diff --git a/README.md b/README.md index 3b9ec89..a78b896 100644 --- a/README.md +++ b/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 | | | | diff --git a/project/cli.go b/project/cli.go index f825b04..2bf4887 100644 --- a/project/cli.go +++ b/project/cli.go @@ -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)