forked from withfig/autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.ts
142 lines (140 loc) · 6.71 KB
/
init.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
const completionSpec: Fig.Spec = {
name: "init",
description: "Initialize or reinitialize gcloud",
options: [
{
name: "--account",
description:
"Google Cloud Platform user account to use for invocation. Overrides the default *core/account* property value for this command invocation",
args: {
name: "ACCOUNT",
description: "String",
suggestions: [],
},
},
{
name: "--billing-project",
description:
"The Google Cloud Platform project that will be charged quota for operations performed in gcloud. If you need to operate on one project, but need quota against a different project, you can use this flag to specify the billing project. If both `billing/quota_project` and `--billing-project` are specified, `--billing-project` takes precedence. Run `$ gcloud config set --help` to see more information about `billing/quota_project`",
args: {
name: "BILLING_PROJECT",
description: "String",
suggestions: [],
},
},
{
name: "--configuration",
description:
"The configuration to use for this command invocation. For more\ninformation on how to use configurations, run:\n`gcloud topic configurations`. You can also use the CLOUDSDK_ACTIVE_CONFIG_NAME environment\nvariable to set the equivalent of this flag for a terminal\nsession",
args: {
name: "CONFIGURATION",
description: "String",
suggestions: [],
},
},
{
name: "--console-only",
description:
"Prevent the command from launching a browser for authorization",
},
{
name: "--flags-file",
description:
"A YAML or JSON file that specifies a *--flag*:*value* dictionary.\nUseful for specifying complex flag values with special characters\nthat work with any command interpreter. Additionally, each\n*--flags-file* arg is replaced by its constituent flags. See\n$ gcloud topic flags-file for more information",
args: {
name: "YAML_FILE",
description: "String",
suggestions: [],
},
},
{
name: "--flatten",
description:
"Flatten _name_[] output resource slices in _KEY_ into separate records\nfor each item in each slice. Multiple keys and slices may be specified.\nThis also flattens keys for *--format* and *--filter*. For example,\n*--flatten=abc.def* flattens *abc.def[].ghi* references to\n*abc.def.ghi*. A resource record containing *abc.def[]* with N elements\nwill expand to N records in the flattened output. This flag interacts\nwith other flags that are applied in this order: *--flatten*,\n*--sort-by*, *--filter*, *--limit*",
args: {
name: "KEY",
description: "List",
suggestions: [],
},
},
{
name: "--format",
description:
"Set the format for printing command output resources. The default is a\ncommand-specific human-friendly output format. The supported formats\nare: `config`, `csv`, `default`, `diff`, `disable`, `flattened`, `get`, `json`, `list`, `multi`, `none`, `object`, `table`, `text`, `value`, `yaml`. For more details run $ gcloud topic formats",
args: {
name: "FORMAT",
description: "String",
suggestions: [],
},
},
{
name: "--help",
description: "Display detailed help",
},
{
name: "--impersonate-service-account",
description:
"For this gcloud invocation, all API requests will be made as the given service account instead of the currently selected account. This is done without needing to create, download, and activate a key for the account. In order to perform operations as the service account, your currently selected account must have an IAM role that includes the iam.serviceAccounts.getAccessToken permission for the service account. The roles/iam.serviceAccountTokenCreator role has this permission or you may create a custom role. Overrides the default *auth/impersonate_service_account* property value for this command invocation",
args: {
name: "SERVICE_ACCOUNT_EMAIL",
description: "String",
suggestions: [],
},
},
{
name: "--log-http",
description:
"Log all HTTP server requests and responses to stderr. Overrides the default *core/log_http* property value for this command invocation",
},
{
name: "--project",
description:
"The Google Cloud Platform project ID to use for this invocation. If\nomitted, then the current project is assumed; the current project can\nbe listed using `gcloud config list --format='text(core.project)'`\nand can be set using `gcloud config set project PROJECTID`.\n+\n`--project` and its fallback `core/project` property play two roles\nin the invocation. It specifies the project of the resource to\noperate on. It also specifies the project for API enablement check,\nquota, and billing. To specify a different project for quota and\nbilling, use `--billing-project` or `billing/quota_project` property",
args: {
name: "PROJECT_ID",
description: "String",
suggestions: [],
},
},
{
name: "--quiet",
description:
"Disable all interactive prompts when running gcloud commands. If input\nis required, defaults will be used, or an error will be raised.\nOverrides the default core/disable_prompts property value for this\ncommand invocation. This is equivalent to setting the environment\nvariable `CLOUDSDK_CORE_DISABLE_PROMPTS` to 1",
},
{
name: "--skip-diagnostics",
description: "Do not run diagnostics",
},
{
name: "--trace-token",
description:
"Token used to route traces of service requests for investigation of issues. Overrides the default *core/trace_token* property value for this command invocation",
args: {
name: "TRACE_TOKEN",
description: "String",
suggestions: [],
},
},
{
name: "--user-output-enabled",
description:
"Print user intended output to the console. Overrides the default *core/user_output_enabled* property value for this command invocation. Use *--no-user-output-enabled* to disable",
},
{
name: "--verbosity",
description:
"Override the default verbosity for this command. Overrides the default *core/verbosity* property value for this command invocation. _VERBOSITY_ must be one of: *debug*, *info*, *warning*, *error*, *critical*, *none*",
args: {
name: "VERBOSITY",
description: "String",
suggestions: ["debug", "info", "warning", "error", "critical", "none"],
},
},
],
args: {
name: "OBSOLETE_PROJECT_ARG",
description: "THIS ARGUMENT NEEDS HELP TEXT",
isVariadic: false,
},
};
export default completionSpec;