SarthakMakhija/cli-craft-examples
Example repository for cli-craft.
7121ebb4f33ba2a471a46a0a41679c2f7b2ac0f6.tar.gz
This repository serves as an example collection for cli-craft, a command-line interface (CLI) client builder written in Zig. Its primary purpose is to showcase various functionalities and usage patterns of the cli-craft library.
The examples are located within the src directory, demonstrating different aspects of cli-craft usage.
This project is built with Zig version 0.14.1.
./cli_craft_examples
Error: No command provided to execute.
Usage: [app-name] [command] [flags] [arguments]
Available Commands:
arithmetic (math) Perform arithmetic operations
help Display help for commands
Global flags:
--help, -h Display help for command
/cli_craft_examples arithmetic
Error: No subcommand provided for command 'arithmetic'.
arithmetic - Perform arithmetic operations
Usage: arithmetic [subcommand] [flags] [arguments]
Aliases:
math
Flags:
--help, -h Show help for command (boolean)
Available Commands:
add (plus) Add N arguments
sub (minus) Subtract b from a
./cli_craft_examples arithmetic -h
arithmetic - Perform arithmetic operations
Usage: arithmetic [subcommand] [flags] [arguments]
Aliases:
math
Flags:
--help, -h Show help for command (boolean)
Available Commands:
add (plus) Add N arguments
sub (minus) Subtract b from a
./cli_craft_examples math add -h
add - Add N arguments
Usage: add [flags] [arguments]
Aliases:
plus
Flags:
--help, -h Show help for command (boolean)