69 lines
1.8 KiB
JSON
69 lines
1.8 KiB
JSON
{
|
|
"flags": {
|
|
"account-name": {
|
|
"type": "string",
|
|
"description": "The name of the account"
|
|
},
|
|
"full": {
|
|
"type": "bool",
|
|
"description": "Set to true to print the build information in full"
|
|
},
|
|
"instance": {
|
|
"type": "string",
|
|
"description": "The instance that you want to log into"
|
|
},
|
|
"to": {
|
|
"type": "string",
|
|
"description": "TBC"
|
|
}
|
|
},
|
|
|
|
"commands": {
|
|
"init": {
|
|
"additionalFields": [
|
|
{ "name": "configDir", "type": "string"}
|
|
],
|
|
"flags": [],
|
|
"summary": "Creates a new configuration file in the specified configuration directory",
|
|
"useConfig": false,
|
|
"usePrinter": true
|
|
},
|
|
"login": {
|
|
"flags": [
|
|
{ "flag": "instance", "default": "" }
|
|
],
|
|
"summary": "Logs into an account on GoToSocial",
|
|
"useConfig": true,
|
|
"usePrinter": true
|
|
},
|
|
"switch": {
|
|
"flags": [
|
|
{ "flag": "account-name", "default": "" },
|
|
{ "flag": "to", "default": "" }
|
|
],
|
|
"summary": "Performs a switch operation (e.g. switching between logged in accounts)",
|
|
"useConfig": true,
|
|
"usePrinter": true
|
|
},
|
|
"version": {
|
|
"additionalFields": [
|
|
{ "name": "binaryVersion", "type": "string"},
|
|
{ "name": "buildTime", "type": "string"},
|
|
{ "name": "goVersion", "type": "string"},
|
|
{ "name": "gitCommit", "type": "string"}
|
|
],
|
|
"flags": [
|
|
{ "flag": "full", "default": "false" }
|
|
],
|
|
"summary": "Prints the application's version and build information",
|
|
"useConfig": false,
|
|
"usePrinter": true
|
|
},
|
|
"whoami": {
|
|
"flags": [],
|
|
"summary": "Prints the account that you are currently logged into",
|
|
"useConfig": true,
|
|
"usePrinter": true
|
|
}
|
|
}
|
|
}
|