Skip to content

ericmariot/aya

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aya

enhanced_image

aya is a personal CLI in development!

Installation

To install aya, run the following command:

go install github.com/ericmariot/aya@latest

Usage

Some basic usage examples:

$ aya
image

Get Weather Information for your current location.

To get the current weather information based on your IP address, simply run:

$ aya weather
🌎 Getting coordinates for Criciuma
🌤️  Getting weather
America/Sao_Paulo TZ
Last update: 20:15
Current: 13.9°C

To get the current weather information for a specified city, use the weather command:

$ aya weather [city_name]

For example:

$ aya weather san-francisco

Use the Graph Flag

To display the weather information in a graphical format, use the --graph flag:

$ aya weather san-francisco --graph
image

Config File

A config file is saved at:

homeDir := os.UserHomeDir()
configFilePath = filepath.Join(homeDir, ".aya.json")

It is used to save your current location from the IP Address, and also caches cities that are used in the weather command! You can clear the config file with $ aya clearConfig

🤝 Contributing

Clone the repo

git clone https://git@github.com:ericmariot/aya.git
cd aya

Build the project

go build

Run the project

./aya

Run the tests

go test ./...

Submit a pull request

If you'd like to contribute, please fork the repository and open a pull request to the main branch.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages