-
-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve cli #3386
Comments
@woodpecker-ci/maintainers I would like to work on |
I think its quite common practice to use args (see kubectl, docker, ...) therefore I would suggest to stick to it and add an empty-string check with a more descriptive error in front of the |
Obviously, but I could also name a lot of tools without args. We could have a way more clean code without arg validation, as flag validation and required flags is a built-in feature of urfave/cli. However, if args is preferred, that works for me as well. |
I don't know if urfave/cli still checks that required arguments are not empty if required (you can provide argument but provide it with empty value) so check for empty value could still be needed |
There is no required args feature, just a required flags option. |
While the new setup flow seems nice, it utterly fails on a headless machine. As a quick fix I'd recommend echoing the URL that it's trying to apparently open in a browser or otherwise provide a flow where I can open the URL on another device and feed back a token on the cli. |
You can easily set URL and token with the |
The problem is the setup just "stops" when the browser open is attempted behind the scenes. If it was a bit more verbose about it, wouldn't be as confusing. |
Yes, the log message should print that you can use the env vars. I put it on the list above. |
yes we should check if the env has an wayland or xorg session, and if not we print out this sugestion and fail as we run "headless" ... |
The woodpecker cli could get some polishing:
--force
optioncli exec
by downloading metadata #4103.git/config
in pwd [CLI] Get repos from git remotes #910The text was updated successfully, but these errors were encountered: