Skip to content
/ goris Public
forked from borischen0203/goris

This "goris"command-line tool is mainly used to download a cute gopher image!

License

Notifications You must be signed in to change notification settings

shnn217/goris

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mac-gopher

GitHub release GitHub release Code Status

goris

This goris command-line tool is mainly used to download gopher png images from an amazing Go developer Aurélie's repo. see below link:

https://github.com/scraly/gophers

Features

  • get command: Be able to download a gopher image to desktop.
  • get link command: Be able to get a gopher image link with html.
  • list command: Be able to display a list with all gopher image names.
  • view command: Be able to pop up gopher image window.

Installation

On macOS via Homebrew

> brew tap borischen0203/goris
> brew install goris

How to use

Make sure you install a chrome browser

Run

> goris list # show a gopher image file name list
> goris get # download gopher image and save to desktop
> goris get link # get gopher image link
> goris view # pop up a gopher image window

Demo example

list command

> goris list
[Try to get Gopher list...]
5th-element
arrow-gopher
back-to-the-future-v2
baywatch
big-bang-theory
.
.
.

get command

> goris get 5th-element
Try to get '5th-element' Gopher...
Perfect! Just saved in /Users/boris/desktop/5th-element.png!
 ---------------------
< 5th-element download! >
 ---------------------
        \
         \
         ,_---~~~~~----._
  _,,_,*^____      _____``*g*\"*,
 / __/ /'     ^.  /      \ ^@q   f
[  @f | @))    |  | @))   l  0 _/
 \`/   \~____ / __ \_____/    \
  |           _l__l_           I
  }          [______]           I
  ]            | | |            |
  ]             ~ ~             |
  |                            |
   |                           |

get link command

> goris get link 5th-element
Try to Generate gopher link...
<img src="https://raw.githubusercontent.com/scraly/gophers/main/5th-element.png" alt="5th-element">
5th-element! I choose you! Paste above link in the readme!

view command

> goris view 5th-element
Pop-up 5th-element window!

Tech stack

  • Golang
  • Cobra

Todo:

  • view command: Be able to preview gopher image.
  • get link command: Be able to generate gopher image link with html.

Reference:

https://dev.to/aurelievache/learning-go-by-examples-part-3-create-a-cli-app-in-go-1h43

About

This "goris"command-line tool is mainly used to download a cute gopher image!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 96.1%
  • Makefile 3.9%