Skip to content

An sbt plugin for viewing cat pictures. Because if sbt is going to download the entire Internet, it damn well ought to include some cat pictures.

License

Notifications You must be signed in to change notification settings

thricejamie/sbt-meow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sbt meow

An sbt plugin for viewing cat pictures. Because if sbt is going to download the entire Internet, it damn well ought to include some cat pictures.

Install

Add the following to your sbt project/plugins.sbt file:

resolvers += Resolver.url(
  "bintray-thricejamie-sbt-plugins",
    url("http://dl.bintray.com/thricejamie/sbt-plugins"))(
        Resolver.ivyStylePatterns)

addSbtPlugin("com.37pieces" % "sbt-meow" % "0.2")

NOTE this plugin targets sbt 0.13.

Usage

Your project now supports the meow task which will download a random cat picture from the web and render it to your terminal in brilliant ASCII.

> meow

Bam. Cat picture.

But what if that's not enough cats???

By default, The Cat API only serves the first 1000 pictures in its collection. However, if you register for an API key and add it to your project configuration, you can get access to to full collection of cat images.

Add the following setting to your build.sbt file (substituting your key for the XXXXXX) and revel in the bounty:

meowCatApiKey := "XXXXXX"

Caveats

Currently only tested with any thoroughness using bash on OS X. Linux seems mostly happy. Results on Windows will likely be less than impressive.

Acknowledgements

License

Copyright (c) 2014-2016 Jamie Paulson

Published under The MIT License, see LICENSE

About

An sbt plugin for viewing cat pictures. Because if sbt is going to download the entire Internet, it damn well ought to include some cat pictures.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages