Giter VIP home page Giter VIP logo

camer's Introduction

camer

A nifty command alias manager

Quick Start

Install

# cargo
cargo install camer
# pnpm
pnpm add camer -g

Usage

$ camer -h
camer 1.0.0

USAGE:
    camer <SUBCOMMAND>

OPTIONS:
    -h, --help       Print help information
    -V, --version    Print version information

SUBCOMMANDS:
    add       Add a command alias
    clean     Clean up CAM application files
    help      Print this message or the help of the given subcommand(s)
    init      Initialisation of the configuration file
    ls        Show all alias set
    remove    Remove existing alias

Init

The configuration file needs to be initialised before the camer can be used. This is done by executing camer init.

$ camer init
[CAM INFO]: cam initialization succeeded, please run `source /Users/kim/.zshrc`

When the above message is output on the command line, the initialisation is successful.

Ls

The camer ls command lists all alias set.

$ camer ls
 Alias |            Command
=======+================================
  gs   |           git status
-------+--------------------------------
  ga   |            git add
-------+--------------------------------
  gaa  |           git add -A
-------+--------------------------------
  ni   |          npm install
-------+--------------------------------
  ya   |            yarn add
-------+--------------------------------
  pa   |            pnpm add
-------+--------------------------------
  nr   |            npm run
-------+--------------------------------
   s   |         npm run start
-------+--------------------------------
   t   |          npm run test
-------+--------------------------------
   p   |          npm run prod
-------+--------------------------------
   d   |          npm run dev
-------+--------------------------------
   b   |         npm run build

Above are some of the default aliases that cramer creates for you.

Add

The camer add command adds a new alias. The alias name and the command to be executed are required.

Let's add an alias for the npm run deploy command

$ camer add nd "npm run deploy"
[CAM INFO]: nd added successfully, please run `source /Users/kim/.zshrc`

The above result means that this was added successfully, so let's run the prompt command to make it work.

Remove

The camer remove command removes an existing alias. The alias name is required.

Let's remove the alias added in Add

$ camer remove nd
[CAM INFO]: remove nd alias succeeded, please run `source /Users/kim/.zshrc`

The above result means that this was removed successfully, so let's run the prompt command to make it work.

Clean

When you want to uninstall the camer application, please run camer clean before downloading if you need the configuration file to be removed along with it.

$ camer clean
[CAM Info]: Cam cleanup succeeded

The above result means that the cleanup was successful.

If you want to continue using it, please run camer init again to initialise it.

License

MIT

camer's People

Contributors

harshshredding avatar hubvue avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

harshshredding

camer's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

cargo
Cargo.toml
  • clap 4.1.6
  • dirs 4.0
  • regex 1.7.1
  • prettytable-rs 0.10.0
github-actions
.github/workflows/Publish.yml
  • actions/checkout v3
  • actions-rs/toolchain v1
  • actions/upload-artifact v3
  • actions/checkout v3
  • pnpm/action-setup v2.2.4
  • actions/setup-node v3
  • actions/download-artifact v3
npm
npm/camer/package.json
  • node >=14.*
package.json
  • bumpp 8.2.1
  • node >=14.*

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.