Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/siddheshk02/go-gopher
A toy project to calculate weight on different planets :)
https://github.com/siddheshk02/go-gopher
cobra-cli golang
Last synced: about 1 month ago
JSON representation
A toy project to calculate weight on different planets :)
- Host: GitHub
- URL: https://github.com/siddheshk02/go-gopher
- Owner: Siddheshk02
- License: mit
- Created: 2022-06-20T16:02:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-07T14:40:42.000Z (over 2 years ago)
- Last Synced: 2024-04-17T18:03:22.951Z (8 months ago)
- Topics: cobra-cli, golang
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CLI created using Golang and Cobra CLI - to find out Weight on different Planets :rocket: :rocket:
```
go run main.go>🚀 🚀 FIND OUT THE WEIGHT ON DIFFERENT PLANETS 🚀 🚀
```
```
go run main.go --help
> Gopher - A simple CLI
- One can use to Check weight on different planetsUsage:
Gopher [flags]
Gopher [command]Available Commands:
Jupiter Weight on Jupiter
Mars Weight on Mars
Mercury Weight on Mercury
Moon Weight on Moon
Neptune Weight on Neptune
Pluto Weight on Pluto
Saturn Weight on Saturn
Uranus Weight on Uranus
Venus Weight on Venus
completion Generate the autocompletion script for the specified shell
help Help about any commandFlags:
-h, --help help for Gopher
-v, --version version for GopherUse "Gopher [command] --help" for more information about a command.
```
Run : go run main.go _PLANET_ _WEIGHT_
```
go run main.go moon 60 _OR_ go run main.go Moon 60
>Enter the Weight on Earth 🌎
>60
>The Weight on Moon 🌕 is 9.920489 kg :)
```
```
go run main.go --version
> Gopher version 0.0.1
```