Skip to content

Commit

Permalink
chore: bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
fu050409 committed Jul 20, 2024
1 parent f97c6bf commit 8e71cbb
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .changeset/.markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"MD041": false
}
5 changes: 5 additions & 0 deletions .changeset/healthy-carpets-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'clap-js': patch
---

Implement utils functions to create clap command instance
5 changes: 5 additions & 0 deletions .changeset/nasty-bugs-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'clap-js': patch
---

Call callback functions with context object after merged parsed args
5 changes: 5 additions & 0 deletions .changeset/orange-bugs-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'clap-js': patch
---

Merge parsed args by `clap-rs` to context args object
5 changes: 5 additions & 0 deletions .changeset/poor-cats-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'clap-js': patch
---

Remove features for clap-rs
5 changes: 5 additions & 0 deletions .changeset/two-keys-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'clap-js': patch
---

Implement command definition types
16 changes: 12 additions & 4 deletions __test__/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
import test from 'ava'

import { defineCommand } from '../index'
import { Command, defineCommand, run } from '../index'

test('define command', (t) => {
const cmd = {
meta: {},
options: {},
const cmd: Command = {
meta: {
name: 'test',
version: '1.0.0',
about: 'test command',
},
options: {
foo: {
type: 'positional',
},
},
callback: (ctx: any) => {
console.log(ctx)
},
Expand Down

0 comments on commit 8e71cbb

Please sign in to comment.