Skip to content

Commit

Permalink
Add more examples
Browse files Browse the repository at this point in the history
  • Loading branch information
siokas committed May 9, 2022
1 parent b810f23 commit c4c5dd1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
6 changes: 3 additions & 3 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
export const test = Deno.test;
export { parse } from "https://deno.land/std@0.136.0/flags/mod.ts";
export { parse } from "https://deno.land/std@0.138.0/flags/mod.ts";
export {
blue,
bold,
green,
red,
reset as resetColor,
yellow,
} from "https://deno.land/std@0.136.0/fmt/colors.ts";
} from "https://deno.land/std@0.138.0/fmt/colors.ts";
export {
assert,
assertEquals,
assertThrows,
} from "https://deno.land/std@0.136.0/testing/asserts.ts";
} from "https://deno.land/std@0.138.0/testing/asserts.ts";
3 changes: 1 addition & 2 deletions egg.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
"homepage": "https://github.com/siokas/denomander",
"unstable": true,
"unlisted": false,
"version": "0.9.1",
"version": "0.9.2",
"releaseType": "patch",
"files": [
"./mod.ts",
"./deps.ts",
"./bootstrap.ts",
"./src/**/*",
"./README.md"
],
Expand Down
12 changes: 12 additions & 0 deletions examples/printer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ program
.command("warning", "Just a warning")
.action(() => program.print().warning("This is a warning message"));

program
.command("lighttheme", "Simple theme print commant")
.action(() => program.print().lightMode("This is the light mode"));

program
.command("darktheme", "Simple theme print commant")
.action(() => program.print().darkMode("This is the dark mode"));

program
.command("goldentheme", "Simple theme print commant")
.action(() => program.print().goldenMode("This is the golden mode"));

try {
program.parse(Deno.args);
} catch (error) {
Expand Down

0 comments on commit c4c5dd1

Please sign in to comment.