Giter VIP home page Giter VIP logo

uggo's Introduction

uggo

Ungraceful Gnu-ification for Go.

This helps Go commandline apps to behave a bit more 'coreutils'-like, or 'Gnu-ish'.

Yes, there are many other flagset libraries out there. This one provides a wrapper around the existing flag.FlagSet, embedding and embellishing it. You can use uggo as a drop-in replacement for flag.FlagSet, or you can specify a couple of different behaviours. Up to you.

The reason why it's called 'ungraceful' is because it's an approximation of gnu-like behaviour, as close as I could get while still wrapping flag.FlagSet. It's good enough for me anyway. Also, the STDIN-pipe-detection is platform-specific, relying on an undocumented behaviour in Windows.

Initial features

  • 'Gnuify' options such as -lah so they are treated as -l -a -h (whereas --lah is treated as-is, as a single option --lah)
  • detect whether STDIN is being piped from another process
  • 'aliased flags' (wrapper methods making it easier to define short and long options, or just multiple options)
  • Re-jigged format of 'Usage' to incroporate 'aliased flags'

See Also

These programs use uggo:

uggo's People

Contributors

laher avatar

Stargazers

Pedro F. Albanese avatar beta avatar Xe Iaso avatar Ciaran Downey avatar Michael Hood avatar Wade Simmons avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.