Comments (7)
Is "Reader read from url", #34, what you are looking for?
If yes, take a look at
https://github.com/suntong/cascadia#twitter-search
from cli.
Not at all.
I'm talking about situations of:
app -arg http://google.com
with args struct:
type rootArgs struct {
cli.Helper
someArg url.URL `cli:"arg" usage:"give me some url"`
}
from cli.
Oh, ok. Is url.URL
something new or already supported?
from cli.
Something new compared to what? It's an stdlib type (import net/url
), which can parse and validate urls. I'm using it right now with a help of a custom parser boilerplate (as outlined in my OP). However, considering that validating urls is a pretty common task in Go world, I hoped that it can be incorporated into the "cli" library as one of the basic types (similar to string and int).
from cli.
@mkideal is not active nowadays as he used to be.
Previously bugs get fixed within days, usually within 48 or even 24 hours.
Now he's in sleeping mode that nobody seems to be able to wake him up.
I mean, you'll have better chances if you submit a PR, with some well-thought test cases covered.
from cli.
I have decided to abstain from PRs on github these days. :-)
Everybody says, "submit a PR", but when someone does it always deteriorates into a never ending PR-ball, which usually makes a rather lousy pastime.
from cli.
oh, that's an odd story, but good to hear.
from cli.
Related Issues (20)
- Reader read from url HOT 2
- How to add default flag for jsonfile? HOT 4
- Simplify access to nested args HOT 3
- Publish new release please HOT 4
- Self config allows to go with the executable file HOT 5
- Excessive spacing with defaults when in NormalStyle HOT 19
- Terminate with non-zero exit code in case of an error HOT 2
- Something went wrong with dep HOT 6
- This project is now dormant, but there is a new forked repo HOT 8
- Catching up HOT 1
- Need separator to arrange parameters in groups HOT 4
- Need to loosen the tight control of the config name HOT 14
- When decoding Time with empty string, toggle IsSet HOT 1
- dft not accepting '$' value HOT 2
- Printing self help HOT 5
- Command alias HOT 4
- IsSet always returns false HOT 3
- Default value incorrect when printing usage
- Default arguments from embedded struct not realised HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.