-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Autogenerate CLI docs and sanitize README (#67)
We leverage https://pkg.go.dev/github.com/spf13/cobra/doc for autogenerating CLI docs in markdown format. We also add github workflow to make sure that up-to-date docs are also required to merge cli code changes. README was updated to have better structure and remove old info. Also we now refer to cli with its correct name `outcli` in docs also. NOTE: Even though we are now auto-generating docs, the comment/doc strings in commands still need to be improved in a future PR. Closes #46
- Loading branch information
Showing
18 changed files
with
363 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
## outcli | ||
|
||
|
||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for outcli | ||
--key string The outline api key | ||
--server string The outline API server url | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [outcli collection](outcli_collection.md) - Work with collections | ||
* [outcli document](outcli_document.md) - Work with documents | ||
* [outcli version](outcli_version.md) - Show app version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
## outcli collection | ||
|
||
Work with collections | ||
|
||
### Synopsis | ||
|
||
If you have to work with collection in any case, use this command | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for collection | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--key string The outline api key | ||
--server string The outline API server url | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [outcli](outcli.md) - | ||
* [outcli collection create](outcli_collection_create.md) - Creates a collection | ||
* [outcli collection docs](outcli_collection_docs.md) - Get document structure | ||
* [outcli collection info](outcli_collection_info.md) - Get collection info | ||
* [outcli collection list](outcli_collection_list.md) - List all collections | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
## outcli collection create | ||
|
||
Creates a collection | ||
|
||
### Synopsis | ||
|
||
Creates a collection with the given name and prints the result as json to stdout | ||
|
||
``` | ||
outcli collection create [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for create | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--key string The outline api key | ||
--server string The outline API server url | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [outcli collection](outcli_collection.md) - Work with collections | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
## outcli collection docs | ||
|
||
Get document structure | ||
|
||
### Synopsis | ||
|
||
Get a summary of associated documents (and children) | ||
|
||
``` | ||
outcli collection docs [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for docs | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--key string The outline api key | ||
--server string The outline API server url | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [outcli collection](outcli_collection.md) - Work with collections | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
## outcli collection info | ||
|
||
Get collection info | ||
|
||
### Synopsis | ||
|
||
Get information about the collection | ||
|
||
``` | ||
outcli collection info [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for info | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--key string The outline api key | ||
--server string The outline API server url | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [outcli collection](outcli_collection.md) - Work with collections | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
## outcli collection list | ||
|
||
List all collections | ||
|
||
### Synopsis | ||
|
||
Get a list of all collections. | ||
|
||
``` | ||
outcli collection list [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for list | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--key string The outline api key | ||
--server string The outline API server url | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [outcli collection](outcli_collection.md) - Work with collections | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
## outcli document | ||
|
||
Work with documents | ||
|
||
### Synopsis | ||
|
||
If you have to work with documents in any case, use this command | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for document | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--key string The outline api key | ||
--server string The outline API server url | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [outcli](outcli.md) - | ||
* [outcli document create](outcli_document_create.md) - Creates a document | ||
* [outcli document get](outcli_document_get.md) - Get an existing document by its ID | ||
* [outcli document update](outcli_document_update.md) - Update an existing document | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
## outcli document create | ||
|
||
Creates a document | ||
|
||
### Synopsis | ||
|
||
Creates a collection with the given name and collection id | ||
|
||
``` | ||
outcli document create [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for create | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--key string The outline api key | ||
--server string The outline API server url | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [outcli document](outcli_document.md) - Work with documents | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
## outcli document get | ||
|
||
Get an existing document by its ID | ||
|
||
### Synopsis | ||
|
||
Get information about an existing document by specifying its document ID or a share ID | ||
|
||
``` | ||
outcli document get [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for get | ||
--share Treat the argument as document share iD | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--key string The outline api key | ||
--server string The outline API server url | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [outcli document](outcli_document.md) - Work with documents | ||
|
Oops, something went wrong.