-
Notifications
You must be signed in to change notification settings - Fork 226
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
Kpt location parsing #2688
Kpt location parsing #2688
Commits on Feb 1, 2022
-
Building block for parsing arg location
- location.ParseReference to be used by CLI where string arg is taken - may be used by callers that needs similar arg parsing/muxing - callers which have strongly-typed data initialize types like location.Git{...} and location.Oci{...}
Louis DeJardin committedFeb 1, 2022 Configuration menu - View commit details
-
Copy full SHA for 9605501 - Browse repository at this point
Copy the full SHA 9605501View commit details -
Adding test coverage for parsing "-" arg
- using WithStdin and WithStdout option must be added by the caller - if they are both present on all calls to ParseReference, then the location returned for "-" would be ambiguous. it depends on which switch or argument is being parsed.
Louis DeJardin committedFeb 1, 2022 Configuration menu - View commit details
-
Copy full SHA for 0f0e16f - Browse repository at this point
Copy the full SHA 0f0e16fView commit details -
Fixing PR errors related to best practices
Louis DeJardin committedFeb 1, 2022 Configuration menu - View commit details
-
Copy full SHA for f2d8279 - Browse repository at this point
Copy the full SHA f2d8279View commit details -
Another update for PR coding standard
Louis DeJardin committedFeb 1, 2022 Configuration menu - View commit details
-
Copy full SHA for 4860a52 - Browse repository at this point
Copy the full SHA 4860a52View commit details -
Adding details needed by kpg pkg get
- location.Reference gets Type() and Validate() - kptfileutils has method to make kptfilev1 types from ref and reflock
Louis DeJardin committedFeb 1, 2022 Configuration menu - View commit details
-
Copy full SHA for 96c66d9 - Browse repository at this point
Copy the full SHA 96c66d9View commit details -
Selection of parsers is now controlled by options
- for kpt CLI it enables parse to be used for many different args - for external code, enables custom and standard parsing together
Louis DeJardin committedFeb 1, 2022 Configuration menu - View commit details
-
Copy full SHA for 1cec6c8 - Browse repository at this point
Copy the full SHA 1cec6c8View commit details -
Adding comments and returning bool from trivial func
Louis DeJardin committedFeb 1, 2022 Configuration menu - View commit details
-
Copy full SHA for 9b37c61 - Browse repository at this point
Copy the full SHA 9b37c61View commit details -
Louis DeJardin committed
Feb 1, 2022 Configuration menu - View commit details
-
Copy full SHA for 987db2d - Browse repository at this point
Copy the full SHA 987db2dView commit details -
Using lock instead of string for argument name
Louis DeJardin committedFeb 1, 2022 Configuration menu - View commit details
-
Copy full SHA for 1588d92 - Browse repository at this point
Copy the full SHA 1588d92View commit details -
Using filepath.Clean before creating location.Dir{}
Louis DeJardin committedFeb 1, 2022 Configuration menu - View commit details
-
Copy full SHA for b46eb25 - Browse repository at this point
Copy the full SHA b46eb25View commit details -
Changing parsers to clarify semantics
- Parser and Option split into two concepts - Single WithParsers option now takes ordered parsers - StdioParser adjusted so WithStdin and WithStdout options are not sensitive to parser order - the parser result struct documented to clarify what to return and how they combine
Louis DeJardin committedFeb 1, 2022 Configuration menu - View commit details
-
Copy full SHA for 6891e1c - Browse repository at this point
Copy the full SHA 6891e1cView commit details