Skip to content
Merged
Show file tree
Hide file tree
Changes from 93 commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
d1d9658
docs: ready for v0.27
kazupon Aug 5, 2025
dcd6aaf
Merge branch 'main' into feat/docs-for-027
kazupon Aug 12, 2025
77ea0dc
chore: bump deps
kazupon Aug 12, 2025
4e946d6
docs: add release note
kazupon Aug 12, 2025
22a2942
Merge branch 'main' into feat/docs-for-027
kazupon Aug 12, 2025
307ad4d
docs: update release note
kazupon Aug 12, 2025
6daac8e
docs: wip
kazupon Aug 12, 2025
0c7b647
docs: update getting-started
kazupon Aug 12, 2025
f5088eb
docs: add rendering customization
kazupon Aug 12, 2025
d55cf4f
docs: add command hooks chapter as advanced
kazupon Aug 12, 2025
5394e46
docs(plugin): update readme
kazupon Aug 12, 2025
644d222
docs: updates
kazupon Aug 12, 2025
5924bd7
docs: add type-system
kazupon Aug 12, 2025
ed2a4c3
docs: update type-system
kazupon Aug 12, 2025
2fd14b2
docs: fix wrong resolveKey
kazupon Aug 12, 2025
42a760a
docs: add more advanced type-safe feature docs
kazupon Aug 12, 2025
e6be8dd
docs: update declarative-configuration
kazupon Aug 12, 2025
3a41f89
docs: update plugin readme
kazupon Aug 12, 2025
5cc8e3c
docs: add plugin introduction
kazupon Aug 13, 2025
a9b5cc6
docs: add getting-started for plugin
kazupon Aug 14, 2025
f06294a
docs: update introduction
kazupon Aug 14, 2025
31c02e4
docs: split to advanced from getting-started
kazupon Aug 14, 2025
9967a1f
docs: update plugin lifecycle docs
kazupon Aug 14, 2025
514ca9b
docs: add plugin dependencies
kazupon Aug 14, 2025
e4000fc
docs: fix
kazupon Aug 14, 2025
66ef9be
docs: tweaks
kazupon Aug 14, 2025
78c6614
docs: tweak mermaid styles
kazupon Aug 14, 2025
6fd960b
docs: remove unnecessary codes
kazupon Aug 15, 2025
cd6689b
docs: add decorators
kazupon Aug 15, 2025
93b45f7
docs: fix decorator docs
kazupon Aug 16, 2025
b11c060
chore: fix
kazupon Aug 16, 2025
c05bdea
chore: lock file
kazupon Aug 16, 2025
717645c
docs: add extensions
kazupon Aug 16, 2025
4633d55
docs: tweak decorators
kazupon Aug 16, 2025
a82cf4b
docs: tweak dependencies
kazupon Aug 16, 2025
8d5bf5b
docs: tweaks
kazupon Aug 16, 2025
726bd27
docs: tweak getting-started
kazupon Aug 16, 2025
4ab0a00
docs: add type-system and releated updates
kazupon Aug 17, 2025
b6165ab
docs: more tweak type-system
kazupon Aug 17, 2025
69fdccd
docs: more tweak advanced type-system
kazupon Aug 17, 2025
7090fcd
docs: update links
kazupon Aug 17, 2025
627b517
docs: add plugin testing
kazupon Aug 24, 2025
3642499
docs: add guidelines.md
kazupon Aug 28, 2025
1a9b95a
docs: fix wrong description on extensions.md
kazupon Aug 28, 2025
1737dc1
docs: tweak toc and add notice on testing.md
kazupon Aug 28, 2025
2aba06d
docs: more tweak guidelines.md
kazupon Aug 28, 2025
32c88b8
docs: tweak guide/plugin docs
kazupon Aug 31, 2025
43b9e7f
docs: update introduction/what-is-gunshi.md
kazupon Aug 31, 2025
13ad0a0
docs: change filename
kazupon Aug 31, 2025
9c5060f
docs: update docs navigation
kazupon Aug 31, 2025
37452ed
docs: move context-extensions.md to advanced
kazupon Aug 31, 2025
6cf66f0
docs: move essentials/internationalization.md to advanced/internation…
kazupon Aug 31, 2025
a1f6db9
docs: add plugin navigations
kazupon Aug 31, 2025
1e49b20
docs: update essentials/plugin-system.md
kazupon Aug 31, 2025
a82c424
docs: tweak essentials/plugin-system
kazupon Sep 1, 2025
0f4e284
docs: tweak essentials/getting-started
kazupon Sep 3, 2025
8232c18
docs: tweak essentials/getting-started
kazupon Sep 3, 2025
ef2c4ad
docs: change filename
kazupon Sep 3, 2025
e6714c3
docs: fix wrong word
kazupon Sep 3, 2025
9aefb69
docs: imporve essentials/type-safe docs
kazupon Sep 4, 2025
9e4f18d
docs: remove exaggerated expressions
kazupon Sep 4, 2025
fe3e4af
docs: re-fine essentials/composable chapter
kazupon Sep 5, 2025
6a16abd
docs: fix essentials/type-safe chapter
kazupon Sep 5, 2025
5071bf2
docs: re-fine essentials/lazy-async chapter
kazupon Sep 6, 2025
abb4423
docs: change filename
kazupon Sep 6, 2025
969e797
docs: improve next steps at essentials/getting-started
kazupon Sep 6, 2025
3682ad8
docs: change filenames
kazupon Sep 6, 2025
4cf82f8
docs: change filename
kazupon Sep 6, 2025
5c5ae77
docs: improve essentials/auto-usage chapter
kazupon Sep 7, 2025
801b3d9
docs: update eseentials/plugin-system chapter
kazupon Sep 9, 2025
a565a3c
docs: update plugin-completion readme
kazupon Sep 9, 2025
a25b8ae
docs: fix wrong brancket case
kazupon Sep 9, 2025
45bf2ba
docs: tweak introduction/what-is-gunshi chapter
kazupon Sep 10, 2025
c5e6eaf
docs: more improvemnt advanced/command-hooks
kazupon Sep 10, 2025
31dd0f8
docs: remove next steps
kazupon Sep 10, 2025
59f5e8e
docs: update advanced/context-extensions
kazupon Sep 12, 2025
416065d
docs: update
kazupon Sep 12, 2025
aebfbe1
docs: re-fine advanced/custom-rendering
kazupon Sep 13, 2025
4d522f9
docs: more tweak advanced/context-extensions
kazupon Sep 14, 2025
5b6e062
docs: tweak
kazupon Sep 14, 2025
b8e4c51
docs: update advanced/type-system
kazupon Sep 14, 2025
3a1b6bc
docs: update plugin docs
kazupon Sep 15, 2025
c697149
fix: export plugin-renderer plugin id
kazupon Sep 15, 2025
a47edc1
docs: update advanced/internationalization
kazupon Sep 18, 2025
74f1a53
docs: tweaks
kazupon Sep 18, 2025
741d0e0
docs: tweaks advanced/internationalization more
kazupon Sep 19, 2025
7c59f13
docs: update title
kazupon Sep 19, 2025
3e042b1
docs: fix typo
kazupon Sep 19, 2025
f15d671
docs: fix
kazupon Sep 19, 2025
11ee242
docs: fix eslint errors
kazupon Sep 19, 2025
105f7c4
chore: fix eslint
kazupon Sep 19, 2025
1e21365
docs: update advanced/documentation-generation
kazupon Sep 20, 2025
ead7750
docs: change filename
kazupon Sep 20, 2025
36e7415
docs: add mermaid plugin for vitepress
kazupon Sep 20, 2025
6a18832
docs: tweak content format
kazupon Sep 20, 2025
7efeafb
docs: fix advanced/docs-gen
kazupon Sep 20, 2025
98e480d
docs: add plugin/list doc
kazupon Sep 21, 2025
935283a
docs: update next steps of plugin docs
kazupon Sep 21, 2025
ea86a07
docs: update plugin docs
kazupon Sep 21, 2025
fd9e710
docs: fix wrong explanation plugin deps resolution order
kazupon Sep 21, 2025
ae2c4fd
docs: fix example codes and typos
kazupon Sep 21, 2025
a556bdc
docs: fix mermaid figure
kazupon Sep 21, 2025
d05919e
chore: update lock
kazupon Sep 21, 2025
f478b9e
fix: deno type errors
kazupon Sep 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@ Gunshi is a modern javascript command-line library

Gunshi is designed to simplify the creation of modern command-line interfaces:

- 📏 **Simple & Universal**: Run the commands with simple API and support universal runtime.
- ⚙️ **Declarative configuration**: Configure command modules declaratively for better organization and maintainability.
- 🛡️ **Type Safe**: TypeScript support with type-safe argument parsing and option resolution by [args-tokens](https://github.com/kazupon/args-tokens)
- 🧩 **Composable**: Create modular sub-commands that can be composed together for complex CLIs.
- ⏳ **Lazy & Async**: Load command modules lazily and execute them asynchronously for better performance.
- 📜 **Auto usage generation**: Generate helpful usage messages automatically for your commands.
- 🎨 **Custom usage generation**: Customize how usage messages are generated to match your CLI's style.
- 🌍 **Internationalization**: Support multiple languages with built-in i18n, locale resource lazy loading and i18n library integration.
- 📏 **Simple & Universal**: Run commands with simple API and support for universal runtime (Node.js, Deno, Bun).
- ⚙️ **Declarative & Type Safe**: Configure commands declaratively with full TypeScript support and type-safe argument parsing by [args-tokens](https://github.com/kazupon/args-tokens)
- 🧩 **Composable & Lazy**: Create modular sub-commands with context sharing and lazy loading for better performance.
- 🎨 **Flexible Rendering**: Customize usage generation, validation errors, and help messages with pluggable renderers.
- 🌍 **Internationalization**: Built with global users in mind, featuring locale-aware design, resource management, and multi-language support.
- 🔌 **Pluggable**: Extensible plugin system with dependency management and lifecycle hooks for modular CLI development.

## 💿 Installation

Expand Down
1 change: 1 addition & 0 deletions eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ const config: ReturnType<typeof defineConfig> = defineConfig(
'playground/**',
'design/**',
'CHANGELOG.md',
'.github/FUNDING.yml',
'design/**'
]) as Linter.Config
)
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,25 +60,25 @@
"typecheck:tsc": "tsgo --noEmit --diagnostics"
},
"devDependencies": {
"@eslint/compat": "^1.3.1",
"@eslint/compat": "^1.3.2",
"@eslint/markdown": "^7.1.0",
"@kazupon/eslint-config": "^0.35.0",
"@kazupon/prettier-config": "^0.1.1",
"@types/node": "catalog:",
"@typescript/native-preview": "7.0.0-dev.20250815.1",
"@vitest/coverage-v8": "3.2.4",
"@vitest/eslint-plugin": "^1.3.4",
"bumpp": "^10.2.2",
"eslint": "^9.32.0",
"bumpp": "^10.2.3",
"eslint": "^9.33.0",
"eslint-config-prettier": "^10.1.8",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-jsdoc": "^53.0.0",
"eslint-plugin-jsdoc": "^53.0.1",
"eslint-plugin-jsonc": "^2.20.1",
"eslint-plugin-markdown-preferences": "^0.10.0",
"eslint-plugin-module-interop": "^0.3.1",
"eslint-plugin-promise": "^7.2.1",
"eslint-plugin-regexp": "^2.9.1",
"eslint-plugin-regexp": "^2.10.0",
"eslint-plugin-unicorn": "^58.0.0",
"eslint-plugin-unused-imports": "^4.1.4",
"eslint-plugin-vue": "^10.4.0",
Expand All @@ -87,12 +87,12 @@
"gh-changelogen": "^0.2.8",
"gunshi019": "npm:gunshi@0.19.0",
"knip": "^5.62.0",
"lint-staged": "^16.1.2",
"lint-staged": "^16.1.5",
"mitata": "^1.0.34",
"pkg-pr-new": "^0.0.54",
"prettier": "^3.6.2",
"typescript": "catalog:",
"typescript-eslint": "^8.38.0",
"typescript-eslint": "^8.39.1",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^3.2.4"
},
Expand Down
35 changes: 26 additions & 9 deletions packages/docs/src/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,28 +47,45 @@ export default defineConfig({
collapsed: false,
items: [
{ text: 'Getting Started', link: '/guide/essentials/getting-started' },
{
text: 'Declarative Configuration',
link: '/guide/essentials/declarative-configuration'
},
{ text: 'Declarative Configuration', link: '/guide/essentials/declarative' },
{ text: 'Type Safe', link: '/guide/essentials/type-safe' },
{ text: 'Composable', link: '/guide/essentials/composable' },
{ text: 'Lazy & Async', link: '/guide/essentials/lazy-async' },
{ text: 'Auto Usage Generation', link: '/guide/essentials/auto-usage-generation' },
{ text: 'Internationalization', link: '/guide/essentials/internationalization' }
{ text: 'Auto Usage Generation', link: '/guide/essentials/auto-usage' },
{ text: 'Plugin System', link: '/guide/essentials/plugin-system' }
]
},
{
text: 'Advanced',
collapsed: false,
items: [
{ text: 'Custom Usage Generation', link: '/guide/advanced/custom-usage-generation' },
{ text: 'Documentation Generation', link: '/guide/advanced/documentation-generation' },
{ text: 'Command Hooks', link: '/guide/advanced/command-hooks' },
{ text: 'Context Extensions', link: '/guide/advanced/context-extensions' },
{ text: 'Custom Rendering', link: '/guide/advanced/custom-rendering' },
{ text: 'Internationalization', link: '/guide/advanced/internationalization' },
{ text: 'Documentation Generation', link: '/guide/advanced/docs-gen' },
{
text: 'Advanced Lazy Loading and Sub-Commands',
link: '/guide/advanced/advanced-lazy-loading'
}
]
Comment thread
kazupon marked this conversation as resolved.
Resolved
},
{
text: 'Plugin',
collapsed: false,
items: [
{ text: 'Plugin System Introduction', link: '/guide/plugin/introduction.md' },
{
text: 'Getting Started with Plugin Development',
link: '/guide/plugin/getting-started.md'
},
{ text: 'Translation Adapter', link: '/guide/advanced/translation-adapter' }
{ text: 'Plugin Lifecycle', link: '/guide/plugin/lifecycle.md' },
{ text: 'Plugin Dependencies', link: '/guide/plugin/dependencies.md' },
{ text: 'Plugin Decorators', link: '/guide/plugin/decorators.md' },
{ text: 'Plugin Extensions', link: '/guide/plugin/extensions.md' },
{ text: 'Plugin Type System', link: '/guide/plugin/type-system.md' },
{ text: 'Plugin Testing', link: '/guide/plugin/testing.md' },
{ text: 'Plugin Development Guidelines', link: '/guide/plugin/guidelines.md' }
]
},
{
Expand Down
Loading