cpliakas / cliutil Goto Github PK
View Code? Open in Web Editor NEWHelper functions that simplify writing CLI tools with Cobra and Viper.
License: MIT License
Helper functions that simplify writing CLI tools with Cobra and Viper.
License: MIT License
The code implemented for #2 works, but there is a lot of repetitive logic. Furthermore, reflection can result in panics if you are not careful. The goal of this issue is the DRY up the code to make the setting and getting logic consistent and maintainable, and ensure we have the appropriate error handling to avoid panics wherever possible.
error reading option data: c: scheme not supported
It is possible for different commands to have the same option. When using the cliutil
tag, it would simplify things by being able to set the shorthand, usage, etc. by name its name.
=== RUN TestHandleEventListener
event_test.go:50: error sending signal: not supported by windows
--- FAIL: TestHandleEventListener (0.10s)
This library ships with a light-weight, context-aware leveled logger that affords following the best practices outlined at https://dev.splunk.com/enterprise/docs/developapps/logging/loggingbestpractices. One fully implemented, we should document the logger in the README.
The goal is to support embedded structs. For example:
type Input struct {
ValueOne string `cliutil:"option=value-one"`
*InputEmbedded
InputNested *InputNested
}
type InputEmbedded struct {
ValueTwo string `cliutil:"option=value-two"`
}
type InputNested struct {
ValueThree string `cliutil:"option=value-three"`
}
if Input
is passed to SetOptions
and GetOptions
, the value-to
options should be set and get as well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.