Skip to content

fxkk/goscooter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goscooter

Client-Cli and go package for howmuchisthe.fish [github]

Installation

The latest version can be downloaded from releases

Alternatively you can install the binary with go install.

$ go install github.com/fxkk/goscooter@latest

Usage

Package

package main

import "github.com/fxkk/goscooter/pgk/scooter"

func main() {

  // get Random Quote
  quote, _ := scooter.Random()
  fmt.println(quote)

  // get full response struct
  response, _ := scooter.RandomFull()
  fmt.Printf("%+v\n", response)
}

CLI

$ ./goscooter -h
A CLI based on the https://howmuchisthe.fish API

Usage:
  goscooter [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  daily       Daily Scooter Quote
  help        Help about any command
  quote       Get Quote by id
  random      Random Scooter Quote

Flags:
  -f, --full      full response
  -h, --help      help for scooter
  -v, --verbose   verbose output

Use "goscooter [command] --help" for more information about a command.

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

Acknowledgments

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages