forked from withfig/autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdotenv.ts
38 lines (38 loc) · 864 Bytes
/
dotenv.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
// completion spec for dotenv
// https://github.com/bkeepers/dotenv
const completionSpec: Fig.Spec = {
name: "dotenv",
description: "Loads environment variables from .env",
args: {
isCommand: true,
},
options: [
{
name: "-f",
exclusiveOn: ["-h", "-v", "-t"],
description: "List of env files to parse",
args: {
template: "filepaths",
},
},
{
name: ["-h", "--help"],
exclusiveOn: ["-f", "-v", "-t"],
description: "Display help",
},
{
name: ["-v", "--version"],
exclusiveOn: ["-f", "-h", "-t"],
description: "Show version",
},
{
name: ["-t", "--template"],
exclusiveOn: ["-f", "-h", "-v"],
description: "Create a template env file",
args: {
template: "filepaths",
},
},
],
};
export default completionSpec;