forked from withfig/autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added python modules and isModule to schema
- Loading branch information
Brendan Falk
committed
May 3, 2021
1 parent
6dcc5e4
commit b4ff145
Showing
5 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { SIGUNUSED } from "node:constants"; | ||
|
||
export const completion: Fig.Spec = { | ||
name: "http.server", | ||
description: "", | ||
subcommands: [], | ||
options: [ | ||
{ | ||
name: ["-d", "--directory"], | ||
description: "Choose the directory to initiate the server from", | ||
args: { | ||
template: "folders", | ||
}, | ||
}, | ||
{ | ||
name: ["-b", "--bind"], | ||
description: "Bind to a specific IP address", | ||
args: { | ||
name: "IP Address", | ||
description: "e.g. 127.0.0.1", | ||
}, | ||
}, | ||
{ | ||
name: "--cgi", | ||
description: "Enable the CGIHTTPRequestHandler", | ||
}, | ||
], | ||
// Only uncomment if http.server takes an argument | ||
args: { | ||
name: "port", | ||
description: "port number", | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
var completionSpec = { | ||
name: "http.server", | ||
description: "", | ||
subcommands: [], | ||
options: [ | ||
{ | ||
name: ["-d", "--directory"], | ||
description: "Choose the directory to initiate the server from", | ||
args: { | ||
template: "folders", | ||
}, | ||
}, | ||
{ | ||
name: ["-b", "--bind"], | ||
description: "Bind to a specific IP address", | ||
args: { | ||
name: "IP Address", | ||
description: "e.g. 127.0.0.1", | ||
}, | ||
}, | ||
{ | ||
name: "--cgi", | ||
description: "Enable the CGIHTTPRequestHandler", | ||
}, | ||
], | ||
// Only uncomment if http.server takes an argument | ||
args: { | ||
name: "port", | ||
description: "port number", | ||
}, | ||
}; | ||
|