Crates.io | fast-food |
lib.rs | fast-food |
version | 0.3.0 |
source | src |
created_at | 2024-02-26 07:48:38.302271 |
updated_at | 2024-02-26 09:05:20.559947 |
description | A CLI tool to simplify command usage through shortcuts |
homepage | |
repository | https://github.com/kazzix14/fast-food |
max_upload_size | |
id | 1153142 |
size | 16,868 |
Fastfood is a CLI tool designed to make your command line experience as easy and addictive as fast food. It allows you to use commands with fewer types, liberating you from the need to remember the syntax for each command. With fast-food
, you can create shortcuts for your most used commands and execute them with minimal input, just like using the ff
shortcut.
Before you begin, ensure you have the following installed:
To install fast-food
from crates.io, simply run the following command:
cargo install fast-food
This will download and install the latest version of fast-food
directly from crates.io, making it available to run from anywhere on your system.
To configure your shortcuts using the updated configuration format, edit the config.yaml
file in the fast-food
directory with your desired command shortcuts and their respective configurations. Here's an updated example configuration reflecting the new structure:
- name: dc
description: docker
subs:
- name: st
description: stop
subs:
- name: all
description: stop all containers except gitlab-runner
command: "docker ps --no-trunc | sed '1d' | grep -v gitlab-runner | awk '{print $1}'"
To use a shortcut, simply type ff
followed by your command shortcut. For example, to execute the ls
command using the shortcut defined in your config.yaml
:
ff ls
This will execute the ls
command using the shortcut defined in your configuration file.
Contributions are welcome! If you have a suggestion that would make fast-food
better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Distributed under the MIT License. See LICENSE
for more information.
fast-food
better.