1.0.8 • Published 8 months ago

@flowscripter/example-cli v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

example-cli

version build coverage license: MIT

Simple example CLI using dynamic-cli-framework.

Binary Executable Usage

NOTE: The binaries are 10's of megabytes in size as the entire Bun runtime is included.

MacOS

Via Homebrew:

brew install flowscripter/tap/example-cli

Linux

In a terminal:

curl -fsSL https://raw.githubusercontent.com/flowscripter/example-cli/main/script/install.sh | sh

Windows

Via Winget:

winget install Flowscripter.example-cli

Manual Install

You can download and extract the binary zip files from the releases page.

Functional Tests

Refer to functional_tests/README.md

Development

Install dependencies:

bun install

Test:

bun test

Run:

bun run index.ts

During development this can be used to validate command definitions:

DYNAMIC_CLI_FRAMEWORK_VALIDATE_ALL=1 bun run index.ts

During development this can be used to enable framework logging:

DYNAMIC_CLI_FRAMEWORK_DEBUG=1 bun run index.ts

Compile binary:

bun build index.ts --compile --outfile /tmp/example-cli

NOTE: The following tasks use Deno as it excels at these and Bun does not currently provide such functionality:

Format:

deno fmt

Lint:

deno lint index.ts src/ tests/

Documentation

Refer to the dynamic-cli-framework documentation.

License

MIT © Flowscripter

1.0.8

8 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago