2024-08-09 17:16:35 +01:00
|
|
|
{
|
|
|
|
"flags": {
|
2024-08-09 23:37:50 +01:00
|
|
|
"account-name": {
|
2024-08-10 08:51:53 +01:00
|
|
|
"type": "string",
|
|
|
|
"description": "The name of the account"
|
2024-08-09 23:37:50 +01:00
|
|
|
},
|
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
|
|
|
},
|
2024-08-10 08:51:53 +01:00
|
|
|
"notify": {
|
|
|
|
"type": "bool",
|
|
|
|
"description": "Get notifications from statuses from the account you want to follow"
|
|
|
|
},
|
|
|
|
"show-reposts": {
|
|
|
|
"type": "bool",
|
|
|
|
"description": "Show reposts from the account you want to follow"
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "The type of resource you want to action on (e.g. account, status)"
|
|
|
|
},
|
2024-08-09 23:37:50 +01:00
|
|
|
"to": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "TBC"
|
2024-08-09 17:16:35 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"commands": {
|
2024-08-10 08:51:53 +01:00
|
|
|
"accept": {
|
|
|
|
"additionalFields": [],
|
|
|
|
"flags": [
|
|
|
|
{ "flag": "account-name", "default": "" },
|
|
|
|
{ "flag": "type", "fieldName": "resourceType", "default": "" }
|
|
|
|
],
|
|
|
|
"summary": "Accepts a request (e.g. a follow request)",
|
|
|
|
"useConfig": true,
|
|
|
|
"usePrinter": true
|
|
|
|
},
|
|
|
|
"follow": {
|
|
|
|
"additionalFields": [],
|
|
|
|
"flags": [
|
|
|
|
{ "flag": "account-name", "default": "" },
|
|
|
|
{ "flag": "notify", "default": "false" },
|
|
|
|
{ "flag": "show-reposts", "default": "true" },
|
|
|
|
{ "flag": "type", "fieldName": "resourceType", "default": "" }
|
|
|
|
],
|
|
|
|
"summary": "Follow a resource (e.g. an account)",
|
|
|
|
"useConfig": true,
|
|
|
|
"usePrinter": true
|
|
|
|
},
|
2024-08-09 23:59:45 +01:00
|
|
|
"init": {
|
|
|
|
"additionalFields": [
|
|
|
|
{ "name": "configDir", "type": "string"}
|
|
|
|
],
|
|
|
|
"flags": [],
|
|
|
|
"summary": "Creates a new configuration file in the specified configuration directory",
|
|
|
|
"useConfig": false,
|
|
|
|
"usePrinter": true
|
|
|
|
},
|
2024-08-09 17:16:35 +01:00
|
|
|
"login": {
|
2024-08-10 08:51:53 +01:00
|
|
|
"additionalFields": [],
|
2024-08-09 17:16:35 +01:00
|
|
|
"flags": [
|
|
|
|
{ "flag": "instance", "default": "" }
|
|
|
|
],
|
2024-08-09 23:59:45 +01:00
|
|
|
"summary": "Logs into an account on GoToSocial",
|
2024-08-09 19:28:03 +01:00
|
|
|
"useConfig": true,
|
|
|
|
"usePrinter": true
|
2024-08-09 17:16:35 +01:00
|
|
|
},
|
2024-08-10 08:51:53 +01:00
|
|
|
"reject": {
|
|
|
|
"additionalFields": [],
|
|
|
|
"flags": [
|
|
|
|
{ "flag": "account-name", "default": "" },
|
|
|
|
{ "flag": "type", "fieldName": "resourceType", "default": "" }
|
|
|
|
],
|
|
|
|
"summary": "Rejects a request (e.g. a follow request)",
|
|
|
|
"useConfig": true,
|
|
|
|
"usePrinter": true
|
|
|
|
},
|
2024-08-09 23:37:50 +01:00
|
|
|
"switch": {
|
2024-08-10 08:51:53 +01:00
|
|
|
"additionalFields": [],
|
2024-08-09 23:37:50 +01:00
|
|
|
"flags": [
|
|
|
|
{ "flag": "account-name", "default": "" },
|
|
|
|
{ "flag": "to", "default": "" }
|
|
|
|
],
|
2024-08-09 23:59:45 +01:00
|
|
|
"summary": "Performs a switch operation (e.g. switching between logged in accounts)",
|
2024-08-09 23:37:50 +01:00
|
|
|
"useConfig": true,
|
|
|
|
"usePrinter": true
|
|
|
|
},
|
2024-08-10 08:51:53 +01:00
|
|
|
"unfollow": {
|
|
|
|
"additionalFields": [],
|
|
|
|
"flags": [
|
|
|
|
{ "flag": "account-name", "default": "" },
|
|
|
|
{ "flag": "type", "fieldName": "resourceType", "default": "" }
|
|
|
|
],
|
|
|
|
"summary": "Unfollow a resource (e.g. an account)",
|
|
|
|
"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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|