@almeida.cavalcante2/shan-greetings

1.2.0 • Public • Published

shan-greetings

A simple CLI that displays our friend Shan's unique greetings.

Features

  • List Shan's special greetings
  • Generate random Shan-style greetings
  • Colorful and friendly command line interface

Installation

There are two ways to install the CLI:

1. Via NPM (when published)

npm install -g shan-greetings

2. From source code

  1. Clone the repository:
git clone https://github.com/your-username/shan-greetings.git
cd shan-greetings
  1. Install dependencies:
npm install
  1. Give execution permission to bin file:
chmod +x bin/greetings.js
  1. Install globally:
npm install -g .

Usage

The CLI has two main commands:

List all available greetings

hi list

Get a random greeting

hi shan

Help

To see all available commands:

hi --help

Available Greetings

Current greetings include:

  • "Hi how hello, everyone"
  • "Hi how once again, hello everyone"

Development

To contribute to the project:

  1. Fork the repository
  2. Clone your fork:
git clone https://github.com/your-username/shan-greetings.git
  1. Create a branch for your feature:
git checkout -b feature/new-feature
  1. Make your changes and commit:
git commit -m "Add new feature"
  1. Push to your fork:
git push origin feature/new-feature
  1. Open a Pull Request

Troubleshooting

If the greetings command is not available after installation:

  1. Check if npm's bin directory is in your PATH:
echo $PATH
  1. If needed, add to your ~/.bashrc or ~/.zshrc:
export PATH="$PATH:$(npm config get prefix)/bin"
  1. Reload your terminal:
source ~/.bashrc  # or source ~/.zshrc

License

MIT

Author

Your Nam

Readme

Keywords

Package Sidebar

Install

npm i @almeida.cavalcante2/shan-greetings

Weekly Downloads

4

Version

1.2.0

License

MIT

Unpacked Size

4.47 kB

Total Files

6

Last publish

Collaborators

  • almeida.cavalcante2