Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/giorgimakharadze/images-cli-golang
https://github.com/giorgimakharadze/images-cli-golang
golang
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/giorgimakharadze/images-cli-golang
- Owner: GiorgiMakharadze
- License: mit
- Created: 2023-09-11T22:42:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-13T20:23:46.000Z (over 1 year ago)
- Last Synced: 2024-04-09T14:44:56.596Z (9 months ago)
- Topics: golang
- Language: Go
- Homepage:
- Size: 7.06 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-gopher-cli
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
This repo contains a simple CLI (Command Line Interface) application in Go, with a basic code organization.
I use:- net/http package to retrieve our cute Gophers
- Cobra for creating powerful modern CLI applications
- Viper to ...go-gopher-cli utilizes a Makefile to facilitate building and running the application.
## Prerequisites
Install Go in 1.16 version minimum.
## Build the app
To build the application, use the following command:
```sh
$ make build
```$ ./bin/go-gopher-cli
Gopher CLI application written in Go.## Usage:
go-gopher-cli [command]Available Commands:
completion generate the autocompletion script for the specified shell
get This command will get the desired Gopher
help Help about any command
...$ ./bin/go-gopher-cli get friends
Try to get 'friends' Gopher...
Perfect! Just saved in friends.png!$ file friends.png
friends.png: PNG image data, 1156 x 882, 8-bit/color RGBA, non-interlaced