-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathpro.ts
129 lines (129 loc) · 3.12 KB
/
pro.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
const completionSpec: Fig.Spec = {
name: "pro",
description: "Manage Ubuntu Pro services from Canonical",
subcommands: [
{
name: "attach",
description: "Connect an Ubuntu Pro support contract to this machine",
options: [
{
name: "--no-auto-enable",
description:
"Disable the automatic enablement of recommended entitlements",
},
{
name: "--attach-config",
description: "Provide a file with configuration options",
requiresSeparator: true,
args: {
name: "file path",
template: "filepaths",
},
},
],
args: {
name: "token",
isOptional: true,
description:
"Auth token. Not required if specified in --attach-config file",
},
},
{
name: "collect-logs",
description: "Create a tarball with all relevant logs and debug data",
options: [
{
name: ["-o", "--output"],
description:
"Path for tarball. Uses ua_logs.tar.gz in current directory if not specified",
args: {
name: "file",
template: "filepaths",
},
},
],
},
{
name: "detach",
description: "Remove Ubuntu Pro from this machine",
isDangerous: true,
},
{
name: "disable",
description: "Disable this machine's access to an Ubuntu Pro service",
args: {
name: "service",
suggestions: [
"cc-eal",
"cis",
"esm",
"fips",
"fips-updates",
"livepatch",
"ros",
"ros-updates",
],
},
},
{
name: "enable",
description:
"Activate and configure this machine's access to an Ubuntu Pro service",
args: {
name: "service",
suggestions: [
"cc-eal",
"cis",
"esm",
"fips",
"fips-updates",
"livepatch",
"ros",
"ros-updates",
],
},
},
{
name: "fix",
description:
"Fix a CVE or USN on the system by upgrading the appropriate package(s)",
args: {
name: "security issue",
},
},
{
name: "refresh",
description: "Refresh contract and service details from Canonical",
},
{
name: "security-status",
description:
"Show security updates for packages in the system, including all available ESM related content",
},
{
name: "status",
description: "Report current status of Ubuntu Pro services on system",
options: [
{
name: "--format",
description: "Output format",
requiresSeparator: true,
args: {
suggestions: ["tabular", "json", "yaml"],
},
},
{
name: "--simulate-with-token",
args: {
name: "token",
},
},
{
name: "--all",
description: "Include beta and unavailable services",
},
],
},
],
};
export default completionSpec;