1.2.0 • Published 12 months ago
@almeida.cavalcante2/shan-greetings v1.2.0
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-greetings2. From source code
- Clone the repository:
git clone https://github.com/your-username/shan-greetings.git
cd shan-greetings- Install dependencies:
npm install- Give execution permission to bin file:
chmod +x bin/greetings.js- Install globally:
npm install -g .Usage
The CLI has two main commands:
List all available greetings
hi listGet a random greeting
hi shanHelp
To see all available commands:
hi --helpAvailable Greetings
Current greetings include:
- "Hi how hello, everyone"
- "Hi how once again, hello everyone"
Development
To contribute to the project:
- Fork the repository
- Clone your fork:
git clone https://github.com/your-username/shan-greetings.git- Create a branch for your feature:
git checkout -b feature/new-feature- Make your changes and commit:
git commit -m "Add new feature"- Push to your fork:
git push origin feature/new-feature- Open a Pull Request
Troubleshooting
If the greetings command is not available after installation:
- Check if npm's bin directory is in your PATH:
echo $PATH- If needed, add to your ~/.bashrc or ~/.zshrc:
export PATH="$PATH:$(npm config get prefix)/bin"- Reload your terminal:
source ~/.bashrc # or source ~/.zshrcLicense
MIT
Author
Your Nam