-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathsidekiq.ts
56 lines (55 loc) · 1.49 KB
/
sidekiq.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
import { filepaths } from "@fig/autocomplete-generators";
const completionSpec: Fig.Spec = {
name: "sidekiq",
description: "Background job framework for Ruby",
options: [
{
name: ["--concurrency", "-c"],
description: "Processor threads to use",
args: { name: "INT" },
},
{
name: ["--environment", "-e"],
description: "Application environment",
args: { name: "ENV" },
},
{
name: ["--tag", "-g"],
description: "Process tag for procline",
args: { name: "TAG" },
},
{
name: ["--queue", "-q"],
description: "Queues to process with optional weights",
args: [{ name: "QUEUE" }, { name: "WEIGHT", isOptional: true }],
},
{
name: ["--require", "-r"],
description: "Location of Rails application with jobs or file to require",
args: { name: "PATH|DIR", template: ["folders", "filepaths"] },
},
{
name: ["--timeout", "-t"],
description: "Shutdown timeout",
args: { name: "NUM" },
},
{
name: ["--verbose", "-v"],
description: "Print more verbose output",
},
{
name: ["--config", "-C"],
description: "Path to YAML config file",
args: { name: "PATH", generators: filepaths({ extensions: ["yaml"] }) },
},
{
name: ["--help", "-h"],
description: "Show help for sidekiq run",
},
{
name: ["--version", "-V"],
description: "Print version and exit",
},
],
};
export default completionSpec;