Skip to content

feat(bashkit-cli): Add CLI binary for command line usage#7

Merged
chaliy merged 1 commit intomainfrom
claude/bash-filesystem-library-cYGoo
Jan 31, 2026
Merged

feat(bashkit-cli): Add CLI binary for command line usage#7
chaliy merged 1 commit intomainfrom
claude/bash-filesystem-library-cYGoo

Conversation

@chaliy
Copy link
Contributor

@chaliy chaliy commented Jan 31, 2026

Summary

Add a CLI binary for running BashKit from the command line.

Usage

# Execute a command string
bashkit -c 'echo hello'

# Execute a script file
bashkit script.sh

# Show help
bashkit --help

Features

  • -c <command> - Execute a command string
  • Script file execution
  • Proper exit code handling
  • stdout/stderr separation
  • Error messages via anyhow

Examples

# Simple echo
$ bashkit -c 'echo "Hello, World!"'
Hello, World!

# Arithmetic
$ bashkit -c 'echo $((10 + 20))'
30

# Arrays
$ bashkit -c 'arr=(a b c); echo ${#arr[@]}'
3

# For loop
$ bashkit -c 'for i in 1 2 3; do echo $i; done'
1
2
3

Test plan

  • 104 tests passing (library)
  • CLI help works
  • Command execution works
  • Script file execution works
  • Clippy clean

Add bashkit-cli crate with command line interface:
- bashkit -c 'command' - Execute command string
- bashkit script.sh - Execute script file
- bashkit --help / --version

Features:
- Proper exit codes
- stdout/stderr handling
- anyhow for error handling

Usage examples:
  bashkit -c 'echo hello'
  bashkit -c 'arr=(a b c); echo ${arr[@]}'
  bashkit myscript.sh

Tests: 104 passing (library tests)

https://claude.ai/code/session_01A16cD8ztbTJs2PB2iHe1Ua
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@chaliy chaliy merged commit 95c9507 into main Jan 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants