-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved Executable Argument Parsing (#99)
- Loading branch information
1 parent
9707c02
commit 28fc7c7
Showing
10 changed files
with
926 additions
and
556 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 |
---|---|---|
@@ -1 +1 @@ | ||
lts/gallium | ||
lts/iron |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,48 @@ | ||
// Taken from: https://github.com/jonschlinkert/split-string/pull/14 | ||
|
||
declare module 'split-string' { | ||
function split( | ||
input: string, | ||
options?: split.Options | split.SplitFunc | ||
): string[]; | ||
function split( | ||
input: string, | ||
options: split.Options, | ||
fn: split.SplitFunc | ||
): string[]; | ||
|
||
namespace split { | ||
interface ASTNode { | ||
type: 'root' | 'bracket'; | ||
nodes: ASTNode[]; | ||
stash: string[]; | ||
} | ||
|
||
interface State { | ||
input: string; | ||
separator: string; | ||
stack: ASTNode[]; | ||
|
||
bos(): boolean; | ||
|
||
eos(): boolean; | ||
|
||
prev(): string; | ||
|
||
next(): string; | ||
} | ||
|
||
interface Options { | ||
brackets?: { [key: string]: string } | boolean; | ||
quotes?: string[] | boolean; | ||
separator?: string; | ||
strict?: boolean; | ||
|
||
keep?(value: string, state: State): boolean; | ||
} | ||
|
||
type SplitFunc = (state: State) => boolean; | ||
} | ||
|
||
export = split; | ||
} |