git ssb

2+

cel / scuttlebot.io



Commit aa9b649037f4e54ee19dc3d605650538f2bdbef7

add bash/js command prefixes in invite.md

Mel Heisey committed on 12/31/2018, 2:02:45 AM
Parent: ec2631bc4f97cd85ae243022f262ffeb1403b623

Files changed

tmpl/apis/scuttlebot/invite.mdchanged
tmpl/apis/scuttlebot/invite.mdView
@@ -7,13 +7,13 @@
77
88 Create a new invite code.
99
1010 ```bash
11-create {n}
11 +sbot create {n}
1212 ```
1313
1414 ```js
15-create(n, cb)
15 +sbot.create(n, cb)
1616 ```
1717
1818 This produces an invite-code which encodes the sbot server's address, and a keypair seed.
1919 The keypair seed is used to generate a keypair, which is then used to authenticate a connection with the sbot server.
@@ -27,13 +27,13 @@
2727
2828 Use an invite code.
2929
3030 ```bash
31-accept {invitecode}
31 +sbot accept {invitecode}
3232 ```
3333
3434 ```js
35-accept(invitecode, cb)
35 +sbot.accept(invitecode, cb)
3636 ```
3737
3838 This connects to the server address encoded in the invite-code, then calls `use()` on the server.
3939 It will cause the server to follow the local user.
@@ -45,13 +45,13 @@
4545
4646 Use an invite code created by this sbot instance (advanced function).
4747
4848 ```bash
49-use --feed {feedid}
49 +sbot use --feed {feedid}
5050 ```
5151
5252 ```js
53-use({ feed: }, cb)
53 +sbot.use({ feed: }, cb)
5454 ```
5555
5656 This commands the receiving server to follow the given feed.
5757

Built with git-ssb-web