cmsctl and docs
This commit is contained in:
1 parent
fea6eb51b1
commit
93cfa123e4
5 files changed
+316
No files matched your search
@@ -25,6 +25,13 @@ Usage:
|
||||
cmsctl auth token [--raw] Print the persisted token
|
||||
cmsctl auth logout Remove the persisted token
|
||||
|
||||
cmsctl todos [list] [flags] List todos (?done, prio, q, limit)
|
||||
cmsctl todos done <id> Mark a todo as completed
|
||||
cmsctl todos reopen <id> Mark a todo as open / not done
|
||||
cmsctl todos get <id> Get one todo node
|
||||
cmsctl todos create --note '...' [flags] Create a new todo
|
||||
cmsctl todos delete <id> --yes Delete a todo node
|
||||
|
||||
cmsctl cms nodes list [flags] List CMS nodes
|
||||
cmsctl cms nodes get <id> Get one node
|
||||
cmsctl cms nodes create [flags] Create a node
|
||||
@@ -137,6 +144,9 @@ func runWithStdin(args []string, stdin io.Reader, stdout, stderr io.Writer) erro
|
||||
switch rest[0] {
|
||||
case "auth":
|
||||
return runAuth(ctx, cfgPath, &cfg, rest[1:], stdout, stderr, global.timeout)
|
||||
case "todos", "todo":
|
||||
client := newClient(cfg, global.token, global.apiKey, global.timeout)
|
||||
return runTodos(ctx, client, rest[1:], stdin, stdout)
|
||||
case "cms":
|
||||
client := newClient(cfg, global.token, global.apiKey, global.timeout)
|
||||
return runCMS(ctx, client, rest[1:], stdin, stdout)
|
||||
|
||||
Reference in new issue
Block a user