A CLI tool to quickly access and manage your command notes and snippets. Perfect for when reverse-i-search isn't enough!
# Clone the repository
git clone https://github.com/mulecalle/asd-cli.git
cd asd-cli
# Build and install
make install
List all available domains (note categories):
asd notes
Example output:
DOMAIN
k8s
git
aws
View all notes within a specific domain:
asd notes -d <domain>
Example:
asd notes -d k8s
Retrieve a specific note from a domain:
asd notes -d <domain> -n <note>
Example:
asd notes -d k8s -n get-jobs-by-namespace
cmd/
: Contains the CLI commandsdata/
: YAML files containing notes for each domain
utils/
: Utility functions for the CLImain.go
: Application's entrypoint
- Create or edit a YAML file in
cmd/data/
with your domain name (e.g.,k8s.yaml
) - Add your notes in YAML format:
note-name: - command or note content - additional content if needed
Run the test suite with coverage:
make coverage
This will:
- Run all tests
- Generate a coverage report
- Create an HTML coverage report (coverage.html)
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
Big thanks to all the people who have already contributed!