Giter Site home page Giter Site logo

mycli's Introduction


A Sample CLI tool to translate language in the terminal.


demonstration


Usage

~$ mycli --help
  __  __            ____   _       ___ 
 |  \/  |  _   _   / ___| | |     |_ _|
 | |\/| | | | | | | |     | |      | | 
 | |  | | | |_| | | |___  | |___   | | 
 |_|  |_|  \__, |  \____| |_____| |___|
           |___/                       

Usage: mycli -l <language>  -s <sentence>
┌────────────────────────────────────────────────┐
│                                                │
│                                                │
│   Translates a sentence to specific language   │
│                                                │
│                                                │
└────────────────────────────────────────────────┘


Options:
      --version   Show version number                                  [boolean]
  -l, --language  Translate to language                                 [string]
  -s, --sentence  Sentence to be translated                             [string]
      --help      Show help                                            [boolean]

⚠️ You can also use the ISO-639-1 code of the language instead of writing the full language name


Installation

  1. Clone the repository and then navigate to it.
  2. Run npm install to install the dependencies.
  3. Run npm install -g . to install the CLI.

⚠️ This might cause an error which can be resolved easily by using sudo with the command, however, using sudo with npm is not recommended because it might cause permission issues later. So instead put the code below in your .bashrc file and then run the above command again.

npm set prefix ~/.npm
PATH="$HOME/.npm/bin:$PATH"
PATH="./node_modules/.bin:$PATH"
  1. Now you are good to go and can use the CLI globally!

Type mycli or mycli --help to get started.


License

MIT © MyCLI

mycli's People

Contributors

manavshrivastavagit avatar

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.