2024-08-09 17:16:35 +01:00
|
|
|
{
|
|
|
|
"flags": {
|
2024-08-09 23:37:50 +01:00
|
|
|
"account-name": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "The name of the account"
|
|
|
|
},
|
2024-08-09 17:16:35 +01:00
|
|
|
"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"
|
2024-08-09 23:37:50 +01:00
|
|
|
},
|
|
|
|
"to": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "TBC"
|
2024-08-09 17:16:35 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"commands": {
|
|
|
|
"login": {
|
|
|
|
"flags": [
|
|
|
|
{ "flag": "instance", "default": "" }
|
|
|
|
],
|
2024-08-09 19:28:03 +01:00
|
|
|
"summary": "Log into an account on GoToSocial",
|
|
|
|
"useConfig": true,
|
|
|
|
"usePrinter": true
|
2024-08-09 17:16:35 +01:00
|
|
|
},
|
2024-08-09 23:37:50 +01:00
|
|
|
"switch": {
|
|
|
|
"flags": [
|
|
|
|
{ "flag": "account-name", "default": "" },
|
|
|
|
{ "flag": "to", "default": "" }
|
|
|
|
],
|
|
|
|
"summary": "Perform a switch operation (e.g. switching between logged in accounts)",
|
|
|
|
"useConfig": true,
|
|
|
|
"usePrinter": true
|
|
|
|
},
|
2024-08-09 17:16:35 +01:00
|
|
|
"version": {
|
2024-08-09 19:28:03 +01:00
|
|
|
"additionalFields": [
|
|
|
|
{ "name": "binaryVersion", "type": "string"},
|
|
|
|
{ "name": "buildTime", "type": "string"},
|
|
|
|
{ "name": "goVersion", "type": "string"},
|
|
|
|
{ "name": "gitCommit", "type": "string"}
|
|
|
|
],
|
2024-08-09 17:16:35 +01:00
|
|
|
"flags": [
|
|
|
|
{ "flag": "full", "default": "false" }
|
2024-08-09 19:28:03 +01:00
|
|
|
],
|
|
|
|
"summary": "Prints the application's version and build information",
|
|
|
|
"useConfig": false,
|
|
|
|
"usePrinter": true
|
2024-08-09 18:57:00 +01:00
|
|
|
},
|
|
|
|
"whoami": {
|
2024-08-09 19:28:03 +01:00
|
|
|
"flags": [],
|
2024-08-09 18:57:00 +01:00
|
|
|
"summary": "Prints the account that you are currently logged into",
|
2024-08-09 19:28:03 +01:00
|
|
|
"useConfig": true,
|
|
|
|
"usePrinter": true
|
2024-08-09 17:16:35 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|