Skip to content

Commit

Permalink
add flag parser
Browse files Browse the repository at this point in the history
  • Loading branch information
tahsinature committed Nov 16, 2024
1 parent 3c4e453 commit ab2c6e8
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
20 changes: 20 additions & 0 deletions bin/hardbrake
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
#!/usr/bin/env bun

import meow from "meow";

const cli = meow(
`
Usage
$ hardbrake --help
Options
--help Show this help message
--version Show the version
`,
{
importMeta: import.meta,
flags: {
station: {
type: "string",
},
},
}
);

import hardbrake from "../src/index";

await hardbrake();
Binary file modified bun.lockb
Binary file not shown.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hardbrake",
"version": "1.1.0",
"version": "1.1.1",
"module": "src/index.ts",
"type": "module",
"license": "MIT",
Expand All @@ -24,6 +24,7 @@
},
"dependencies": {
"cli-progress": "^3.12.0",
"meow": "^13.2.0",
"prompts": "^2.4.2",
"readline": "^1.3.0"
}
Expand Down

0 comments on commit ab2c6e8

Please sign in to comment.