Skip to content

Commit

Permalink
chore(upgrade): deno/std@0.140.0, cliffy@0.24.2 (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
c4spar authored May 25, 2022
1 parent 6d1699c commit 27923c6
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 33 deletions.
10 changes: 5 additions & 5 deletions src/cli/deps.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/** std */
export { copy } from "https://deno.land/std@0.136.0/streams/conversion.ts";
export { copy } from "https://deno.land/std@0.140.0/streams/conversion.ts";
export { parse } from "https://deno.land/std@0.130.0/flags/mod.ts";

/** 3rd party */
export { Command } from "https://deno.land/x/cliffy@v0.23.1/command/command.ts";
export { UpgradeCommand } from "https://deno.land/x/cliffy@v0.23.1/command/upgrade/upgrade_command.ts";
export { DenoLandProvider } from "https://deno.land/x/cliffy@v0.23.1/command/upgrade/provider/deno_land.ts";
export { Command } from "https://deno.land/x/cliffy@v0.24.2/command/command.ts";
export { UpgradeCommand } from "https://deno.land/x/cliffy@v0.24.2/command/upgrade/upgrade_command.ts";
export { DenoLandProvider } from "https://deno.land/x/cliffy@v0.24.2/command/upgrade/provider/deno_land.ts";
export {
ValidationError,
} from "https://deno.land/x/cliffy@v0.23.1/command/_errors.ts";
} from "https://deno.land/x/cliffy@v0.24.2/command/_errors.ts";
export { tokens } from "https://deno.land/x/rusty_markdown@v0.4.1/mod.ts";
export {
bundle as denoBundle,
Expand Down
14 changes: 9 additions & 5 deletions src/cli/eval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ import { getModuleFromStdin } from "./lib/stream.ts";

export function evalCommand() {
return new Command()
.description(`Evaluate a dzx script from the command line.\n
dzx eval "console.log($.shell)"\n
Or read from stdin:\n
echo "console.log($.shell)" | dzx eval
`)
.description(`
Evaluate a dzx script from the command line.
dzx eval "console.log($.shell)"
Or read from stdin:
echo "console.log($.shell)" | dzx eval
`)
.arguments("[code]")
.action(
async function (_: void, code?: string) {
Expand Down
10 changes: 6 additions & 4 deletions src/cli/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,12 @@ export function dzx() {
)
.option(
"-v, --verbose",
"Run script in verbose mode. This option can appear up to three times.\n" +
"-v: Print executed commands and script execution time.\n" +
"-vv: Print also stdout and stderr.\n" +
"-vvv: Print internal debug information.",
`
Enable verbose mode. This option can appear up to three times.
-v: Print executed commands and script execution time.
-vv: Print also stdout and stderr.
-vvv: Print internal debug information.
`,
{
collect: true,
default: 1,
Expand Down
10 changes: 6 additions & 4 deletions src/cli/repl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ export function replCommand() {
)
.option(
"-v, --verbose",
"Run repl in verbose mode. This option can appear up to three times.\n" +
"-v: Print executed commands and script execution time.\n" +
"-vv: Print also stdout and stderr.\n" +
"-vvv: Print internal debug information.",
`
Enable verbose mode. This option can appear up to three times.
-v: Print executed commands and script execution time.
-vv: Print also stdout and stderr.
-vvv: Print internal debug information.
`,
{
collect: true,
default: 1,
Expand Down
30 changes: 15 additions & 15 deletions src/runtime/deps.ts
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
export * as async from "https://deno.land/std@0.136.0/async/mod.ts";
export * as async from "https://deno.land/std@0.140.0/async/mod.ts";
export type {
DebouncedFunction,
Deferred,
DelayOptions,
} from "https://deno.land/std@0.136.0/async/mod.ts";
export * as path from "https://deno.land/std@0.136.0/path/mod.ts";
} from "https://deno.land/std@0.140.0/async/mod.ts";
export * as path from "https://deno.land/std@0.140.0/path/mod.ts";
export type {
FormatInputPathObject,
GlobOptions,
GlobToRegExpOptions,
ParsedPath,
} from "https://deno.land/std@0.136.0/path/mod.ts";
export * as io from "https://deno.land/std@0.136.0/io/mod.ts";
} from "https://deno.land/std@0.140.0/path/mod.ts";
export * as io from "https://deno.land/std@0.140.0/io/mod.ts";
export type {
ReadableStreamFromReaderOptions as IOReadableStreamFromReaderOptions,
ReadLineResult,
WritableStreamFromWriterOptions as IOWritableStreamFromWriterOptions,
} from "https://deno.land/std@0.136.0/io/mod.ts";
export * as streams from "https://deno.land/std@0.136.0/streams/mod.ts";
} from "https://deno.land/std@0.140.0/io/mod.ts";
export * as streams from "https://deno.land/std@0.140.0/streams/mod.ts";
export type {
ReadableStreamFromReaderOptions,
WritableStreamFromWriterOptions,
} from "https://deno.land/std@0.136.0/streams/mod.ts";
export * as fs from "https://deno.land/std@0.136.0/fs/mod.ts";
} from "https://deno.land/std@0.140.0/streams/mod.ts";
export * as fs from "https://deno.land/std@0.140.0/fs/mod.ts";
export type {
CopyOptions,
ExpandGlobOptions,
WalkEntry,
WalkOptions,
} from "https://deno.land/std@0.136.0/fs/mod.ts";
export * as log from "https://deno.land/std@0.136.0/log/mod.ts";
} from "https://deno.land/std@0.140.0/fs/mod.ts";
export * as log from "https://deno.land/std@0.140.0/log/mod.ts";
export type {
FormatterFunction,
HandlerOptions,
LevelName,
LogConfig,
LogMode,
} from "https://deno.land/std@0.136.0/log/mod.ts";
export * as flags from "https://deno.land/std@0.136.0/flags/mod.ts";
} from "https://deno.land/std@0.140.0/log/mod.ts";
export * as flags from "https://deno.land/std@0.140.0/flags/mod.ts";
export type {
Args,
ParseOptions,
} from "https://deno.land/std@0.136.0/flags/mod.ts";
export { colors } from "https://deno.land/x/cliffy@v0.20.1/ansi/colors.ts";
} from "https://deno.land/std@0.140.0/flags/mod.ts";
export { colors } from "https://deno.land/x/cliffy@v0.24.2/ansi/colors.ts";
export { default as shq } from "https://esm.sh/shq@1.0.2";

0 comments on commit 27923c6

Please sign in to comment.