11
22const doc = [
33 {
4- name : 'doc switch' ,
5- description : 'Set the active document (only works within the Iroh console).' ,
6- slug : 'doc-switch' ,
7- arguments : [
8- { name : 'id' , necessity : 'required' , description : 'The [identifier](/docs/layers/documents#document-identifiers) of the document to switch to.' } ,
9- ] ,
4+ name : 'doc list' ,
5+ description : 'List documents on this node.' ,
6+ slug : 'doc-list' ,
107 examples : {
11- console : `> doc new
12- ktrygcpxealfdtfmohw66nb2keivu52opk65cyj4j7jy7wior7ea
13-
14- > doc switch ktrygcpxealfdtfmohw66nb2keivu52opk65cyj4j7jy7wior7ea
15-
16- doc:ktrygcpx
17- >` ,
8+ console : `> doc list
9+ tiqpal5qnrb3idy7g4n7hnh5esex7zu6jtqyuwt6hr4iq2nnlpua
10+ 3ogcanavjfehmoeuf3jkel5pmbv2bpdwybvzt7xzk5sgbub72mia
11+ njszszvgpziwnxqnsi32nmc7j2czs2rnj3m7czavudurqxld3nbq` ,
1812 }
1913 } ,
2014 {
2115 name : 'doc new' ,
22- description : 'Create a new blank document.' ,
16+ description : 'Create a new blank document.' ,
2317 slug : 'doc-new' ,
2418 examples : {
2519 console : `> doc new
2620ktrygcpxealfdtfmohw66nb2keivu52opk65cyj4j7jy7wior7ea` ,
2721 }
2822 } ,
29- {
30- name : 'doc join' ,
31- description : 'Join a document from a ticket.' ,
32- slug : 'doc-join' ,
33- arguments : [
34- { name : 'ticket' , necessity : 'required' , description : 'The ticket to join a document. Create a ticket with \'doc share\'.' } ,
35- { name : 'switch' , necessity : '' , description : 'Switch to the joined document (only in the iroh console).' }
36- ] ,
37- examples : {
38- console : `> doc join --switch 6tcadaassjgjfmivyaycuads6ek4asma3qacdtvs6waaaaaaaaaanctrkxaetag4aaq45mxvqmruwqvq5l5vc4kvybeybxaaehhlf5mmh72ojerj4e2tcvoajganyabbz2zplnqhpyekxzhlfzyvlqcai55pmzg4d3x34mcpuydxoq4t5ec66zp3k3ouxwadxky745i3dwrhqcig3rqqdifkjjb3drfbo2krc7l3anoqly5wanom756kxmrqnap
39- tiqpal5qnrb3idy7g4n7hnh5esex7zu6jtqyuwt6hr4iq2nnlpua` ,
40- }
41- } ,
42- {
43- name : 'doc list' ,
44- description : 'List documents on this node.' ,
45- slug : 'doc-list' ,
46- examples : {
47- console : `> doc list
48- tiqpal5qnrb3idy7g4n7hnh5esex7zu6jtqyuwt6hr4iq2nnlpua
49- 3ogcanavjfehmoeuf3jkel5pmbv2bpdwybvzt7xzk5sgbub72mia
50- njszszvgpziwnxqnsi32nmc7j2czs2rnj3m7czavudurqxld3nbq` ,
51- }
52- } ,
53- {
54- name : 'doc share' ,
55- description : 'Share a document with peers.' ,
56- slug : 'doc-share' ,
57- arguments : [
58- { name : 'mode' , necessity : 'required' , description : 'One of \'read\' for Read-only access or \'write\' for Write access.' } ,
59- { name : 'doc' , necessity : 'required' , description : 'Document to share. In the console the current document is used when no `--doc` is provided.' }
60- ] ,
61- examples : {
62- console : `# switch to a specific doc
63- > doc switch njszszvgpziwnxqnsi32nmc7j2czs2rnj3m7czavudurqxld3nbq
64- Active doc is now njszszvg…
65-
66- doc: njszszvg…
67-
68- > doc share write
69- xvqmruwqvq5l5vc4kvybeybxaaehhlf5mmh72ojerj4e2tcvoajganyabbz2zplnqhpyekxzhlfzyvlqcaidiaglyldhfvq4xeaa5cqswdistl2hje3c24biacig3rqqdifkjjb3drfbo2krc7l3anoqly5wanom756kxmrqnap6tcadaassjgjfmivyaycuads6ek4asma3qacdtvs6waaaaaaaaaanctrkxaetag4aaq45mprsyystlwe66cs
70-
71- # or use --doc flag to get the ticket for a specific doc
72- > doc share write --doc 3ogcanavjfehmoeuf3jkel5pmbv2bpdwybvzt7xzk5sgbub72mia
73- gjfmivyaycuads6ek4asma3qacdtvs6waaaaaaaaaanctrkxaetag4aaq45mprsyystlwe66csxvqmruwqvq5l5vc4kvybeybxaaehhlf5mmh72ojerj4e2tcvoajganyabbz2zplnqhpyekxzhljfkldiajjkannnnjiejfkldkaskjlxi0jfwoqppiemxclpilkdipljqhixkkwmhziufkhablskhdjjlllqwoooqusiuypwouuuuippmjkk
74- ` }
75- } ,
7623 {
7724 name : 'doc set' ,
7825 description : 'Set an entry in a document' ,
@@ -164,6 +111,59 @@ author:i3vpd4e7… doc:njszszvg…
164111@i3vpd4e7…: foo = 6lujp3wx… (3 B)` ,
165112 }
166113 } ,
114+ {
115+ name : 'doc share' ,
116+ description : 'Share a document with peers.' ,
117+ slug : 'doc-share' ,
118+ arguments : [
119+ { name : 'mode' , necessity : 'required' , description : 'One of \'read\' for Read-only access or \'write\' for Write access.' } ,
120+ { name : 'doc' , necessity : 'required' , description : 'Document to share. In the console the current document is used when no `--doc` is provided.' }
121+ ] ,
122+ examples : {
123+ console : `# switch to a specific doc
124+ > doc switch njszszvgpziwnxqnsi32nmc7j2czs2rnj3m7czavudurqxld3nbq
125+ Active doc is now njszszvg…
126+
127+ doc: njszszvg…
128+
129+ > doc share write
130+ xvqmruwqvq5l5vc4kvybeybxaaehhlf5mmh72ojerj4e2tcvoajganyabbz2zplnqhpyekxzhlfzyvlqcaidiaglyldhfvq4xeaa5cqswdistl2hje3c24biacig3rqqdifkjjb3drfbo2krc7l3anoqly5wanom756kxmrqnap6tcadaassjgjfmivyaycuads6ek4asma3qacdtvs6waaaaaaaaaanctrkxaetag4aaq45mprsyystlwe66cs
131+
132+ # or use --doc flag to get the ticket for a specific doc
133+ > doc share write --doc 3ogcanavjfehmoeuf3jkel5pmbv2bpdwybvzt7xzk5sgbub72mia
134+ gjfmivyaycuads6ek4asma3qacdtvs6waaaaaaaaaanctrkxaetag4aaq45mprsyystlwe66csxvqmruwqvq5l5vc4kvybeybxaaehhlf5mmh72ojerj4e2tcvoajganyabbz2zplnqhpyekxzhljfkldiajjkannnnjiejfkldkaskjlxi0jfwoqppiemxclpilkdipljqhixkkwmhziufkhablskhdjjlllqwoooqusiuypwouuuuippmjkk
135+ ` }
136+ } ,
137+ {
138+ name : 'doc join' ,
139+ description : 'Join a document from a ticket.' ,
140+ slug : 'doc-join' ,
141+ arguments : [
142+ { name : 'ticket' , necessity : 'required' , description : 'The ticket to join a document. Create a ticket with \'doc share\'.' } ,
143+ { name : 'switch' , necessity : '' , description : 'Switch to the joined document (only in the iroh console).' }
144+ ] ,
145+ examples : {
146+ console : `> doc join --switch 6tcadaassjgjfmivyaycuads6ek4asma3qacdtvs6waaaaaaaaaanctrkxaetag4aaq45mxvqmruwqvq5l5vc4kvybeybxaaehhlf5mmh72ojerj4e2tcvoajganyabbz2zplnqhpyekxzhlfzyvlqcai55pmzg4d3x34mcpuydxoq4t5ec66zp3k3ouxwadxky745i3dwrhqcig3rqqdifkjjb3drfbo2krc7l3anoqly5wanom756kxmrqnap
147+ tiqpal5qnrb3idy7g4n7hnh5esex7zu6jtqyuwt6hr4iq2nnlpua` ,
148+ }
149+ } ,
150+ {
151+ name : 'doc switch' ,
152+ description : 'Set the active document (only works within the Iroh console).' ,
153+ slug : 'doc-switch' ,
154+ arguments : [
155+ { name : 'id' , necessity : 'required' , description : 'The [identifier](/docs/layers/documents#document-identifiers) of the document to switch to.' } ,
156+ ] ,
157+ examples : {
158+ console : `> doc new
159+ ktrygcpxealfdtfmohw66nb2keivu52opk65cyj4j7jy7wior7ea
160+
161+ > doc switch ktrygcpxealfdtfmohw66nb2keivu52opk65cyj4j7jy7wior7ea
162+
163+ doc:ktrygcpx
164+ >` ,
165+ }
166+ } ,
167167]
168168
169169const author = [
@@ -185,7 +185,7 @@ author:wkl4cgry…
185185 }
186186 } ,
187187 {
188- name : 'author list' ,
188+ name : 'author list' ,
189189 description : 'List authors.' ,
190190 slug : 'author-list' ,
191191 examples : {
0 commit comments