Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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 :)

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 planets

Usage:
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 command

Flags:
-h, --help help for Gopher
-v, --version version for Gopher

Use "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
```