warg

Declarative and Intuitive Command Line Apps with Go (by bbkane)

Warg Alternatives

Similar projects and alternatives to warg

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better warg alternative or higher similarity.

warg reviews and mentions

Posts with mentions or reviews of warg. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-04.
  • An Efficient Struct Configuration Pattern For Golang
    4 projects | /r/golang | 4 May 2023
    Funcopts aren't always appropriate, but boy do they make things more readable sometimes. I use them pervasively in warg to allow declarative nested CLI commands
  • Which packages do you recommend for building cli tools?
    10 projects | /r/golang | 17 Apr 2023
    I wrote my own! https://github.com/bbkane/warg/
  • Major standard library changes in Go 1.20
    5 projects | news.ycombinator.com | 16 Jan 2023
    Very useful! I'll be playing with the error tree additions and studying the HTTP interface extension to see if I can replicate the pattern for https://github.com/bbkane/warg values. Id like to be able to have value-specific output for different types of --help , even ones not in warg
  • Have you used generics?
    8 projects | /r/golang | 20 Aug 2022
    I'm using to allow for custom flag types in my CLI parsing library- a lot less duplicate code
  • Go: Functional Options Are Slow
    1 project | news.ycombinator.com | 25 May 2022
    One thing that I find nicer with functional options is building tree-like data structures.

    My command line parsing library uses them to declaratively build CLI apps with arbitrarily nested subcommands.

    Some examples at https://github.com/bbkane/warg/tree/master/examples

  • How are YOU using generics so far?
    12 projects | /r/golang | 20 May 2022
    I'm writing a CLI parsing library, and generics have let me consolidate most of the flag value functionality for different types. So the flags for dbz --level 9000 --type superSaiyan share most of the same code even though one is an int and one is a string. So much fewer copy-paste-modify lines of code now!
  • Unix command line conventions over time
    9 projects | news.ycombinator.com | 7 May 2022
    This is largely what the Azure CLI does. It simplifies even further by eliminating the no-value option. Instead, you pass "true" or "false" as the value ( --example true ). It's a little more verbose but very easy to parse/write/generate. I like this convention so much I stole it for my homemade Golang CLI parsing library https://github.com/bbkane/warg/ .
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 26 Apr 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →

Stats

Basic warg repo stats
7
13
7.5
about 2 months ago

bbkane/warg is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of warg is Go.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com