├── .changeset ├── README.md └── config.json ├── .github └── workflows │ ├── build.yml │ └── release.yml ├── .gitignore ├── .kodiak.toml ├── .node-version ├── CHANGELOG.md ├── LICENSE ├── README.md ├── batteries ├── fs │ ├── package.json │ └── pnpm-lock.yaml └── url │ ├── package.json │ └── pnpm-lock.yaml ├── biome.json ├── book.toml ├── docs ├── SUMMARY.md ├── batteries.md ├── batteries_file_system.md ├── batteries_url.md ├── custom_types.md ├── getting_started.md ├── included_types.md ├── introduction.md ├── parsers.md └── parsers │ ├── binary.md │ ├── command.md │ ├── custom.md │ ├── flags.md │ ├── options.md │ ├── positionals.md │ └── subcommands.md ├── example ├── app.ts ├── app2.ts ├── app3.ts ├── app4.ts ├── app5.ts ├── app6.ts ├── app7.ts ├── negative-numbers.ts ├── rest-example.ts ├── test-types.ts └── tsconfig.json ├── jest.config.js ├── package.json ├── pnpm-lock.yaml ├── renovate.json ├── scripts ├── print-all-states.js ├── ts-node └── tsconfig.json ├── src ├── Result.ts ├── argparser.ts ├── batteries │ ├── fs.ts │ └── url.ts ├── binary.ts ├── chalk.ts ├── circuitbreaker.ts ├── command.ts ├── default.ts ├── effects.ts ├── errorBox.ts ├── flag.ts ├── from.ts ├── helpdoc.ts ├── index.ts ├── multiflag.ts ├── multioption.ts ├── newparser │ ├── findOption.ts │ ├── parser.ts │ └── tokenizer.ts ├── oneOf.ts ├── option.ts ├── positional.ts ├── rest.ts ├── restPositionals.ts ├── runner.ts ├── subcommands.ts ├── type.ts ├── types.ts ├── union.ts └── utils.ts ├── test ├── __snapshots__ │ └── ui.test.ts.snap ├── command.test.ts ├── createRegisterOptions.ts ├── errorBox.test.ts ├── flag.test.ts ├── multioption.test.ts ├── negative-numbers.test.ts ├── newparser │ ├── findOption.test.ts │ └── parser.test.ts ├── rest-parameters.test.ts ├── rest.test.ts ├── restPositionals.test.ts ├── subcommands.test.ts ├── test-types.ts ├── tsconfig.json ├── type-inference.test.ts ├── ui.test.ts ├── util.ts └── utils.test.ts ├── tsconfig.esm.json ├── tsconfig.json ├── tsconfig.noEmit.json └── typedoc.js /.changeset/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/.changeset/README.md -------------------------------------------------------------------------------- /.changeset/config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/.changeset/config.json -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/.gitignore -------------------------------------------------------------------------------- /.kodiak.toml: -------------------------------------------------------------------------------- 1 | version = 1 2 | -------------------------------------------------------------------------------- /.node-version: -------------------------------------------------------------------------------- 1 | v22.16.0 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/README.md -------------------------------------------------------------------------------- /batteries/fs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/batteries/fs/package.json -------------------------------------------------------------------------------- /batteries/fs/pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/batteries/fs/pnpm-lock.yaml -------------------------------------------------------------------------------- /batteries/url/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/batteries/url/package.json -------------------------------------------------------------------------------- /batteries/url/pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/batteries/url/pnpm-lock.yaml -------------------------------------------------------------------------------- /biome.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/biome.json -------------------------------------------------------------------------------- /book.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/book.toml -------------------------------------------------------------------------------- /docs/SUMMARY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/docs/SUMMARY.md -------------------------------------------------------------------------------- /docs/batteries.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/docs/batteries.md -------------------------------------------------------------------------------- /docs/batteries_file_system.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/docs/batteries_file_system.md -------------------------------------------------------------------------------- /docs/batteries_url.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/docs/batteries_url.md -------------------------------------------------------------------------------- /docs/custom_types.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/docs/custom_types.md -------------------------------------------------------------------------------- /docs/getting_started.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/docs/getting_started.md -------------------------------------------------------------------------------- /docs/included_types.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/docs/included_types.md -------------------------------------------------------------------------------- /docs/introduction.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/docs/introduction.md -------------------------------------------------------------------------------- /docs/parsers.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/docs/parsers.md -------------------------------------------------------------------------------- /docs/parsers/binary.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/docs/parsers/binary.md -------------------------------------------------------------------------------- /docs/parsers/command.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/docs/parsers/command.md -------------------------------------------------------------------------------- /docs/parsers/custom.md: -------------------------------------------------------------------------------- 1 | # Building a Custom Parser 2 | 3 | ... wip ... 4 | -------------------------------------------------------------------------------- /docs/parsers/flags.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/docs/parsers/flags.md -------------------------------------------------------------------------------- /docs/parsers/options.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/docs/parsers/options.md -------------------------------------------------------------------------------- /docs/parsers/positionals.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/docs/parsers/positionals.md -------------------------------------------------------------------------------- /docs/parsers/subcommands.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/docs/parsers/subcommands.md -------------------------------------------------------------------------------- /example/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/example/app.ts -------------------------------------------------------------------------------- /example/app2.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/example/app2.ts -------------------------------------------------------------------------------- /example/app3.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/example/app3.ts -------------------------------------------------------------------------------- /example/app4.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/example/app4.ts -------------------------------------------------------------------------------- /example/app5.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/example/app5.ts -------------------------------------------------------------------------------- /example/app6.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/example/app6.ts -------------------------------------------------------------------------------- /example/app7.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/example/app7.ts -------------------------------------------------------------------------------- /example/negative-numbers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/example/negative-numbers.ts -------------------------------------------------------------------------------- /example/rest-example.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/example/rest-example.ts -------------------------------------------------------------------------------- /example/test-types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/example/test-types.ts -------------------------------------------------------------------------------- /example/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.noEmit.json", 3 | "include": ["."] 4 | } 5 | -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/renovate.json -------------------------------------------------------------------------------- /scripts/print-all-states.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/scripts/print-all-states.js -------------------------------------------------------------------------------- /scripts/ts-node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/scripts/ts-node -------------------------------------------------------------------------------- /scripts/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/scripts/tsconfig.json -------------------------------------------------------------------------------- /src/Result.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/Result.ts -------------------------------------------------------------------------------- /src/argparser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/argparser.ts -------------------------------------------------------------------------------- /src/batteries/fs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/batteries/fs.ts -------------------------------------------------------------------------------- /src/batteries/url.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/batteries/url.ts -------------------------------------------------------------------------------- /src/binary.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/binary.ts -------------------------------------------------------------------------------- /src/chalk.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/chalk.ts -------------------------------------------------------------------------------- /src/circuitbreaker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/circuitbreaker.ts -------------------------------------------------------------------------------- /src/command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/command.ts -------------------------------------------------------------------------------- /src/default.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/default.ts -------------------------------------------------------------------------------- /src/effects.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/effects.ts -------------------------------------------------------------------------------- /src/errorBox.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/errorBox.ts -------------------------------------------------------------------------------- /src/flag.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/flag.ts -------------------------------------------------------------------------------- /src/from.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/from.ts -------------------------------------------------------------------------------- /src/helpdoc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/helpdoc.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/multiflag.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/multiflag.ts -------------------------------------------------------------------------------- /src/multioption.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/multioption.ts -------------------------------------------------------------------------------- /src/newparser/findOption.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/newparser/findOption.ts -------------------------------------------------------------------------------- /src/newparser/parser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/newparser/parser.ts -------------------------------------------------------------------------------- /src/newparser/tokenizer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/newparser/tokenizer.ts -------------------------------------------------------------------------------- /src/oneOf.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/oneOf.ts -------------------------------------------------------------------------------- /src/option.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/option.ts -------------------------------------------------------------------------------- /src/positional.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/positional.ts -------------------------------------------------------------------------------- /src/rest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/rest.ts -------------------------------------------------------------------------------- /src/restPositionals.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/restPositionals.ts -------------------------------------------------------------------------------- /src/runner.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/runner.ts -------------------------------------------------------------------------------- /src/subcommands.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/subcommands.ts -------------------------------------------------------------------------------- /src/type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/type.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/union.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/union.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/src/utils.ts -------------------------------------------------------------------------------- /test/__snapshots__/ui.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/test/__snapshots__/ui.test.ts.snap -------------------------------------------------------------------------------- /test/command.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/test/command.test.ts -------------------------------------------------------------------------------- /test/createRegisterOptions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/test/createRegisterOptions.ts -------------------------------------------------------------------------------- /test/errorBox.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/test/errorBox.test.ts -------------------------------------------------------------------------------- /test/flag.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/test/flag.test.ts -------------------------------------------------------------------------------- /test/multioption.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/test/multioption.test.ts -------------------------------------------------------------------------------- /test/negative-numbers.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/test/negative-numbers.test.ts -------------------------------------------------------------------------------- /test/newparser/findOption.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/test/newparser/findOption.test.ts -------------------------------------------------------------------------------- /test/newparser/parser.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/test/newparser/parser.test.ts -------------------------------------------------------------------------------- /test/rest-parameters.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/test/rest-parameters.test.ts -------------------------------------------------------------------------------- /test/rest.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/test/rest.test.ts -------------------------------------------------------------------------------- /test/restPositionals.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/test/restPositionals.test.ts -------------------------------------------------------------------------------- /test/subcommands.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/test/subcommands.test.ts -------------------------------------------------------------------------------- /test/test-types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/test/test-types.ts -------------------------------------------------------------------------------- /test/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.noEmit.json", 3 | "include": ["."] 4 | } 5 | -------------------------------------------------------------------------------- /test/type-inference.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/test/type-inference.test.ts -------------------------------------------------------------------------------- /test/ui.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/test/ui.test.ts -------------------------------------------------------------------------------- /test/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/test/util.ts -------------------------------------------------------------------------------- /test/utils.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/test/utils.test.ts -------------------------------------------------------------------------------- /tsconfig.esm.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/tsconfig.esm.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.noEmit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/tsconfig.noEmit.json -------------------------------------------------------------------------------- /typedoc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Schniz/cmd-ts/HEAD/typedoc.js --------------------------------------------------------------------------------