Commit Graph

72 Commits

Author SHA1 Message Date
Neil Macneale IV 2e8824b7b0 Handle panic in test 2026-01-12 20:46:56 +00:00
Neil Macneale IV 025aa1d8c8 PR Feedback 2026-01-12 19:39:29 +00:00
macneale4 0dd890c782 add -vv support to dolt branch 2026-01-08 16:37:49 -08:00
Neil Macneale IV fa0852348e Add support for -vv in arg parser 2026-01-08 16:35:57 -08:00
Nick Tobey d4b9a44f22 Return nil for absent value list. Otherwise, this returns a list with one element (the empty string). 2025-04-22 18:00:14 -07:00
Nick Tobey b3f1edf700 Add required arg option to argparser. 2025-04-22 18:00:14 -07:00
Neil Macneale IV 736c490cf1 make the argparse insert functionality a little more robust and test it 2025-01-02 09:58:30 -08:00
Neil Macneale IV 9a8d95103f dolt init working again 2025-01-02 09:22:45 -08:00
Zach Musgrave cf49cebf0b fix test 2024-10-11 19:08:38 -07:00
Zach Musgrave a0530f8d90 First pass at dolt checkout tables from commit 2024-10-11 16:36:13 -07:00
Neil Macneale IV 7b6fde0f7b Argparser edge case for value options which are a prefix of flags 2024-09-16 08:29:04 -07:00
Brian Hendriks 0e451b73c1 fix 2024-09-03 17:25:32 -07:00
Brian Hendriks ce0606e537 fix 2024-09-03 16:56:20 -07:00
Brian Hendriks 4b7297a05f support optional string arguments in the middle of command line arguments 2024-09-03 16:02:15 -07:00
Neil Macneale IV 49e0cb67e7 Reverts to some changes in PR 2024-08-20 15:49:23 -07:00
Dylan Varga fed30c181d Fixed grammar typos re issue #8221 2024-08-09 22:24:19 -07:00
Stephanie You cdfabd2876 PR feedback 2023-08-29 14:35:24 -07:00
Stephanie You 392581fc8f make NO_POSITIONAL_ARGS a constant 2023-08-25 16:25:51 -07:00
Stephanie You 735837fc3a update dolt log to support tables separator (--) 2023-08-23 10:53:59 -07:00
Jason Fulghum 5514c1dce3 Fix for https://github.com/dolthub/dolt/issues/6001 2023-07-20 15:19:28 -07:00
Neil Macneale IV f32fc4699a PR Feedack addressed 2023-06-23 09:51:52 -07:00
Neil Macneale IV cd0cf8f9a4 Add ability to drop values from ArgParserResults 2023-06-16 15:56:11 -07:00
Nick Tobey 72f0dc2bad Add clarifying comment to ParseGlobalArgs 2023-05-23 12:28:53 -07:00
Nick Tobey a1b2a38f47 Use more meaningful variable names. 2023-05-23 12:21:19 -07:00
Nick Tobey edc5528ace Replace global arg parser. 2023-05-22 16:13:11 -07:00
Neil Macneale IV 2dd8ad68f9 Update Go tests to use CliContext with an SqlEngine 2023-05-05 11:46:47 -07:00
Nick Tobey fe47616684 Add unit test for too many arguments passed to ArgParser. 2023-04-19 11:37:36 -07:00
Nick Tobey 43aee5f4d1 Update Name field in ArgParser. 2023-04-19 11:37:18 -07:00
Nick Tobey f86c44db47 Add docstrings for NewArgParser... functions. 2023-04-19 11:36:48 -07:00
Nick Tobey ebcaabc5b4 Rename ArgParser.TooManyArgsError to TooManyArgsErrorFunc 2023-04-19 11:36:18 -07:00
Nick Tobey c0a8cb33d2 Fix typo in parser.go error string. 2023-04-18 11:49:35 -07:00
Nick Tobey 19ef9a1d21 ArgParser now takes the name of the command being parsed.
This allows us to print the command name in error messages and disambiguate cases where `dolt_sql` calls a procedure that corresponds to another dolt command.
2023-04-18 11:45:58 -07:00
Nick Tobey 6b2bec33b3 Allow any number of arguments when MaxArgs is set to -1. 2023-04-14 15:23:54 -07:00
Nick Tobey b6abad268b Allow commands to specify a more helpful error message when too many args are passed. 2023-04-14 14:45:11 -07:00
Nick Tobey 9fad10d8fe Replace argparser.NewArgParser with NewArgParserWithMaxArgs and NewArgParserWithVariableArgs
This requires commands to specify the max number of positional arguments they expect.
This makes it harder to accidentally accept extra arguments and ignore them.
2023-04-14 10:18:33 -07:00
JCPrice0024 e04d4d8422 found another minor bug in results.go
Documented behavior
2022-12-05 17:34:37 -05:00
Jason Fulghum 09ec939a10 Updating test name 2022-11-30 13:14:13 -08:00
Jason Fulghum 6f3f182296 Removing newline 2022-11-30 10:29:33 -08:00
Tan Yong Zhi a3d471612e Swap long and short form flag behavior 2022-11-30 13:43:37 +08:00
Tan Yong Zhi 67566b8898 Fix tests 2022-11-29 19:49:18 +08:00
Tan Yong Zhi f654cee95d Fix value being read in param suffix 2022-11-29 17:26:06 +08:00
Zach Musgrave 04dec6e54c Added alias for renamed option 2022-11-14 15:23:22 -08:00
Taylor Bantle f7246f854b Supply multiple refs to --not 2022-11-02 13:39:38 -07:00
jennifersp f42712b240 allow optional empty value for string value for arg parsing (#4093)
* arg value should allow optional empty value

* fix godocs
2022-08-15 20:05:44 -07:00
Maximilian Hoffman 9a7a49f516 initial dolt backup cli (#2208)
* prototype

* backup pushes noms root

* backup pushes root value, basic restore still needs origin drop

* bats tests, no origin on restore, only head ref on restore

* cleanup code, up to date bats test

* make backup restore a root sync also, to catch branches and remote refs

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

* couple of tim's comments

couple of tim's comments

* zach's comments

* loosen restrictions for conflicting remote addresses

* [ga-format-pr] Run go/utils/repofmt/format_repo.sh and go/Godeps/update.sh

Co-authored-by: max-hoffman <max-hoffman@users.noreply.github.com>
2021-10-04 11:53:05 -07:00
Aaron Son 84c3066348 go/**/*.go: Update copyright headers for company name change. 2020-11-02 10:17:02 -08:00
Daylon Wilkins b5bb663233 Reference new org name and updated trigger logic 2020-09-25 15:35:04 -07:00
Andy Arthur a17914549d ugh parsing 2020-05-21 16:56:27 -05:00
Andy Arthur 7286431588 fixed help flag 2020-05-21 15:52:21 -05:00
Andy Arthur c52d3bdc54 repo fmt 2020-05-21 14:59:35 -05:00