Skip to content

Commit

Permalink
refactor(command): make command's executable without --allow-env flag #…
Browse files Browse the repository at this point in the history
  • Loading branch information
c4spar committed May 10, 2020
1 parent 2db057e commit 03117ed
Show file tree
Hide file tree
Showing 39 changed files with 73 additions and 73 deletions.
2 changes: 1 addition & 1 deletion examples/command/action-handler.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Command } from '../../packages/command/lib/command.ts';
import { IFlags } from '../../packages/flags/lib/types.ts';
Expand Down
2 changes: 1 addition & 1 deletion examples/command/action-options.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Command } from '../../packages/command/lib/command.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/command/arguments-syntax-sub-command.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Command } from '../../packages/command/lib/command.ts';
import { IFlags } from '../../packages/flags/lib/types.ts';
Expand Down
2 changes: 1 addition & 1 deletion examples/command/arguments-syntax.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Command } from '../../packages/command/lib/command.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/command/common-option-types.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Command } from '../../packages/command/lib/command.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/command/conflicting-options.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Command } from '../../packages/command/lib/command.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/command/creating-a-program.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Command } from '../../packages/command/lib/command.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/command/custom-option-processing.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Command } from '../../packages/command/lib/command.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/command/custom-option-type-class-completion.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Command, StringType } from '../../command.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/command/custom-option-type-class.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Command, Type } from '../../command.ts';
import { IFlagArgument, IFlagOptions } from '../../flags.ts';
Expand Down
2 changes: 1 addition & 1 deletion examples/command/custom-option-type-completion.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Command } from '../../packages/command/lib/command.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/command/custom-option-type.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Command } from '../../packages/command/lib/command.ts';
import { IFlagArgument, IFlagOptions, ITypeHandler } from '../../packages/flags/lib/types.ts';
Expand Down
2 changes: 1 addition & 1 deletion examples/command/default-option-value.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Command } from '../../packages/command/lib/command.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/command/depending-options.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Command } from '../../packages/command/lib/command.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/command/environment-variables.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Command } from '../../packages/command/lib/command.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/command/examples.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { red } from 'https://deno.land/std/fmt/colors.ts';
import { Command } from '../../packages/command/lib/command.ts';
Expand Down
2 changes: 1 addition & 1 deletion examples/command/git-style-executables.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Command } from '../../packages/command/lib/command.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/command/help-option-and-command.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Command } from '../../packages/command/lib/command.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/command/list-option-type.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Command } from '../../packages/command/lib/command.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/command/negatable-options.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Command } from '../../packages/command/lib/command.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/command/override-exit-handling.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Command } from '../../packages/command/lib/command.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/command/required-options.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Command } from '../../packages/command/lib/command.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/command/standalone-options.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Command } from '../../packages/command/lib/command.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/command/sub-commands.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Command } from '../../packages/command/lib/command.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/command/variadic-options.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Command } from '../../packages/command/lib/command.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/command/version-options.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Command } from '../../packages/command/lib/command.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/prompt/prompt.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Checkbox, Confirm, Input, Number, Select, Separator } from '../../packages/prompt/mod.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/table/multiline-border-table.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Table } from '../../packages/table/lib/table.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/table/multiline-nested-border-table.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Table } from '../../packages/table/lib/table.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/table/multiline-nested-table.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Table } from '../../packages/table/lib/table.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/table/multiline-table.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Table } from '../../packages/table/lib/table.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/table/nested-tables.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Table } from '../../packages/table/lib/table.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/table/padding-indent.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Table } from '../../packages/table/lib/table.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/table/simple-border-table.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Table } from '../../packages/table/lib/table.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/table/simple-nested-border-table.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Table } from '../../packages/table/lib/table.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/table/simple-nested-table.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Table } from '../../packages/table/lib/table.ts';

Expand Down
2 changes: 1 addition & 1 deletion examples/table/simple-table.ts
@@ -1,4 +1,4 @@
#!/usr/bin/env -S deno --allow-env
#!/usr/bin/env -S deno

import { Table } from '../../packages/table/lib/table.ts';

Expand Down

0 comments on commit 03117ed

Please sign in to comment.