@almeida.cavalcante2/shan-greetings
v1.2.0
Published
Uma CLI para mostrar as saudações do nosso amigo Shan
Downloads
187
Readme
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
- 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 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:
- 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 ~/.zshrc
License
MIT
Author
Your Nam