{"id":22803066,"url":"https://github.com/ozankasikci/command-vault","last_synced_at":"2025-04-13T18:22:21.953Z","repository":{"id":267717961,"uuid":"902141016","full_name":"ozankasikci/command-vault","owner":"ozankasikci","description":"A command store for your favorite terminal commands","archived":false,"fork":false,"pushed_at":"2024-12-26T00:26:10.000Z","size":2185,"stargazers_count":34,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T09:06:38.884Z","etag":null,"topics":["command","command-line-tool","commands","rust","rust-lang"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ozankasikci.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-12T01:43:12.000Z","updated_at":"2025-03-27T00:06:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"fa5e7d1c-6366-4ffb-a809-a2e43668b29b","html_url":"https://github.com/ozankasikci/command-vault","commit_stats":null,"previous_names":["ozankasikci/command-vault"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozankasikci%2Fcommand-vault","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozankasikci%2Fcommand-vault/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozankasikci%2Fcommand-vault/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozankasikci%2Fcommand-vault/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ozankasikci","download_url":"https://codeload.github.com/ozankasikci/command-vault/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248759133,"owners_count":21157096,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command","command-line-tool","commands","rust","rust-lang"],"created_at":"2024-12-12T09:08:40.332Z","updated_at":"2025-04-13T18:22:21.932Z","avatar_url":"https://github.com/ozankasikci.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Command Vault\n[![Crates.io](https://img.shields.io/crates/v/command-vault.svg?style=flat-square)](https://crates.io/crates/command-vault)\n[![Documentation](https://docs.rs/command-vault/badge.svg)](https://docs.rs/command-vault)\n![example workflow](https://github.com/ozankasikci/command-vault/actions/workflows/test.yml/badge.svg)\n[![codecov](https://codecov.io/gh/ozankasikci/command-vault/branch/main/graph/badge.svg)](https://codecov.io/gh/ozankasikci/command-vault)\n\nCommand Vault is a command manager for storing, and executing your complex commands. It provides a user-friendly interface to search, list, and delete commands, as well as tag commands for better organization.\n\n## Table of Contents\n- [Features](#features)\n- [Usage](#usage)\n  - [Add Commands](#add-commands)\n  - [Search Commands](#search-commands)\n  - [List Commands](#list-commands)\n  - [Delete Commands](#delete-commands)\n  - [Tag Commands](#tag-commands)\n- [Installation](#installation)\n  - [From Releases](#from-releases)\n  - [Shell Integration](#shell-integration)\n  - [Building from Source](#building-from-source)\n- [Development](#development)\n- [Shell Aliases](#shell-aliases)\n- [License](#license)\n\n## Features\n\n- 🔍 Smart search through command history\n- 🏷️ Tag commands for better organization\n- 🐚 Cross-shell support (Bash, Zsh)\n- 💾 Local SQLite database for fast searching\n- 🔐 Safe command execution with validation\n\n## Usage\n\n### Add Commands\n```bash\n# Add a command with tags\ncommand-vault add --tags git,deploy -- git push origin main\ncommand-vault add -- echo \"Hello, world!\"\n\n# Add a command with parameters\ncommand-vault add \"git commit -m @message:Commit message\"\ncommand-vault add \"curl -X POST @url:API endpoint -d @data:JSON payload\"\n```\n![Add Command](demo/add-command3.gif)\n\n### Parameters\nYou can add dynamic parameters to your commands using the `@parameter` syntax:\n- Simple parameter: `@name`\n\nExamples:\n```bash\n# Git commit with message parameter\ngit commit -m \"@message\"\n```\n\nWhen executing a command with parameters, Command Vault will prompt you to enter values for each parameter.\n\n### Search Commands\n```bash\n# Search commands\ncommand-vault search \"git push\"\n```\n![Search Commands](demo/search-command.gif)\n\n### List Commands\n```bash\n# List recent commands\ncommand-vault ls\n```\n![List Commands](demo/ls-command2.gif)\n\n### Delete Commands\n```bash\n# Delete a command\ncommand-vault delete \u003ccommand-id\u003e\n```\n![Delete Commands](demo/delete-command.gif)\n\n### Tag Commands\n```bash\n# Show tag command\ncommand-vault tag # Show tag related commands\ncommand-vault tag list # List tag related commands\n```\n![Tag Commands](demo/tag-command.gif)\n\n## Installation\n\n### From Releases\n\nYou can download the latest release for your platform from the [releases page](https://github.com/yourusername/command-vault/releases).\n\n#### Linux\n```bash\n# Download the latest release (replace X.Y.Z with the version number)\ncurl -LO https://github.com/ozankasikci/command-vault/releases/download/v0.3.0/command-vault-macos-arm64.tar.gz\ntar xzf command-vault-macos-arm64.tar.gz\n# Make it executable\nchmod +x command-vault-linux-amd64\n# Move it to your PATH\nsudo mv command-vault-linux-amd64 /usr/local/bin/command-vault\n\n# Initialize shell integration (add to your .bashrc or .zshrc)\nsource \"$(command-vault shell-init)\"\n```\n\n#### macOS\n```bash\n# Download the latest release (replace X.Y.Z with the version number)\ncurl -LO https://github.com/ozankasikci/command-vault/releases/download/v0.3.0/command-vault-macos-arm64.tar.gz\ntar xzf command-vault-macos-arm64.tar.gz\n# Make it executable\nchmod +x command-vault-macos-arm64\n# Move it to your PATH\nsudo mv command-vault-macos-arm64 /usr/local/bin/command-vault\n# Initialize shell integration (add to your .bashrc or .zshrc)\nsource \"$(command-vault shell-init)\"\n```\n\n#### Windows\nDownload the Windows executable from the releases page and add it to your PATH.\n\n### Shell Integration\n\nCommand Vault needs to be integrated with your shell to automatically track commands. Add this to your shell's RC file:\n\n```bash\n# For Bash (~/.bashrc)\nsource \"$(command-vault shell-init)\"\n\n# For Zsh (~/.zshrc)\nsource \"$(command-vault shell-init)\"\n```\n\n### Building from Source\n\nIf you prefer to build from source, you'll need Rust installed on your system:\n\n```bash\n# Clone the repository\ngit clone https://github.com/yourusername/command-vault.git\ncd command-vault\n\n# Build the project\ncargo build --release\n\n# The binary will be available in target/release/command-vault\n```\n\nAdd the following to your shell's configuration file (`~/.bashrc` or `~/.zshrc`):\n   ```bash\n   source \"$(command-vault shell-init)\"\n   ```\n\n## Development\n\n### Running Tests\n```bash\ncargo test\n```\n\n### Code Coverage\n```bash\n# Generate coverage report (requires cargo-tarpaulin)\n./scripts/coverage.sh\n\n# View the report in your browser\nopen coverage/tarpaulin-report.html\n```\n\n## Shell Aliases\n\nFor easier access, you can add aliases to your shell configuration:\n\n### For Bash/Zsh (add to ~/.zshrc or ~/.bashrc)\n```bash\n# to use as cmdv:\nalias cmdv='command-vault'\n# or to use as cv:\nalias cv='command-vault'\n```\n\nAfter adding the aliases, restart your shell or run:\n```bash\nsource ~/.zshrc  # for Zsh\nsource ~/.bashrc # for Bash\n```\n\nNow you can use shorter commands:\n```bash\ncv add 'echo Hello'\ncmdv ls\n```\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fozankasikci%2Fcommand-vault","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fozankasikci%2Fcommand-vault","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fozankasikci%2Fcommand-vault/lists"}