Commit graph

697 commits

Author SHA1 Message Date
jharshman
984374f5b6 clean up testproject files after test executes 2019-06-07 10:31:03 -04:00
jharshman
11aa612384 test add 2019-06-07 10:31:03 -04:00
jharshman
303a3e5160 vgo - strip out unused methods 2019-06-07 10:31:03 -04:00
jharshman
0bb1506d25 remove commented field in struct 2019-06-07 10:31:03 -04:00
jharshman
2fea75b02e vgo - add command working 2019-06-07 10:31:03 -04:00
jharshman
3c42f846c2 fix duplicated dir 2019-06-07 10:31:03 -04:00
jharshman
221bae3986 depricate package name flag 2019-06-07 10:31:03 -04:00
jharshman
b8ad19ad0d reorder some operations 2019-06-07 10:31:03 -04:00
jharshman
732e4db0d4 vgo - trim some uneeded data from struct 2019-06-07 10:31:03 -04:00
jharshman
c7ac101cf8 vgo - fixing up the add op to work with vgo 2019-06-07 10:31:03 -04:00
jharshman
3741457400 add CommandTemplate 2019-06-07 10:31:03 -04:00
jharshman
50665e9993 vgo - update golden templates 2019-06-07 10:31:03 -04:00
jharshman
642c3c7a0e vgo - compare generated files against golden files 2019-06-07 10:31:03 -04:00
jharshman
e993d53002 vgo - take named directory or current wd 2019-06-07 10:31:03 -04:00
jharshman
04af6aed80 vgo - add todo 2019-06-07 10:31:03 -04:00
jharshman
c3b51f3a2e simplify test 2019-06-07 10:31:03 -04:00
jharshman
4c22a20fd4 vgo - remove unused methods 2019-06-07 10:31:03 -04:00
jharshman
73b5215dc7 vgo - fix format 2019-06-07 10:31:03 -04:00
jharshman
44c2d482f6 fix calling to createLicenseFile 2019-06-07 10:31:03 -04:00
jharshman
91dbcb7ffe remove commented code 2019-06-07 10:31:03 -04:00
jharshman
5b1685faaa vgo - generate license 2019-06-07 10:31:03 -04:00
jharshman
abab9aa52a vgo - add Create method to Project struct 2019-06-07 10:31:03 -04:00
jharshman
69420a9ffa vgo - create directory 2019-06-07 10:31:03 -04:00
jharshman
17dc9f8142 fixing up templates more 2019-06-07 10:31:03 -04:00
jharshman
26d210e2cd vgo - fixing up the root template 2019-06-07 10:31:03 -04:00
jharshman
c356c6491b add .idea/* to gitignore 2019-06-07 10:31:03 -04:00
jharshman
80ea2901b6 vgo-support - re-working code generator 2019-06-07 10:31:03 -04:00
Jan Kuehle
d658160bdd Add markdown file explaining support for PowerShell 2019-06-07 10:26:08 -04:00
Jan Kuehle
21ccc7b307 Add basic PowerShell completions 2019-06-07 10:26:08 -04:00
Haim Ashkenazi
e2c45ac9eb Started working on Unified API for the various shell completions:
- Moved some general function to a more generic shell_completions file.
- Added functions to mark flag as directory completion.
- Started making the global functions docs more generic (not bash
  specific) and added compatibility matrix.
2019-06-07 10:09:50 -04:00
Haim Ashkenazi
601d83077b typo in zsh-completions.md 2019-06-07 10:09:50 -04:00
Haim Ashkenazi
edbb6712e2 zsh-completions: implemented argument completion. 2019-06-07 10:09:50 -04:00
Haim Ashkenazi
d262154093 zsh-completion: tidy up function and variable names
There are many files in the package, renamed all zsh-completion
related names to convey that.
2019-06-07 10:09:50 -04:00
Haim Ashkenazi
8822449c0f zsh-completion: added escapinng of single quotes in flag description. 2019-06-07 10:09:50 -04:00
Haim Ashkenazi
66a98807d4 zsh-completion: test to verify that we're always running on root cmd. 2019-06-07 10:09:50 -04:00
Haim Ashkenazi
7b62c7df78 zsh-completion: --version and --help still doesn't work correctly
When invoking from subcommand. Modified the test to prove.
2019-06-07 10:09:50 -04:00
Haim Ashkenazi
7ce08e227e zsh-completion: completion should always parse the root command!
It was running on the command it was invoked from which caused some
additional helpers (--help, --version) not to be generated.
2019-06-07 10:09:50 -04:00
Haim Ashkenazi
91e80cc4a4 zsh-completion: remove bad test
I thought there was a bug in the boolSlice definition but it seems
It was my mistake in identifying what's going on. Also removed the
provisioning to skip tests (doesn't seem to be needed anymore).
2019-06-07 10:09:50 -04:00
Haim Ashkenazi
0d9a33d2da zsh-completion: remove temporary file
Yet another temporary file that found itself in the repo :(
2019-06-07 10:09:50 -04:00
Haim Ashkenazi
50f385938e zsh-completion: added support for filename globbing. 2019-06-07 10:09:50 -04:00
Haim Ashkenazi
bda855a1a0 zsh-completions: fixed zsh completion markdown file name. 2019-06-07 10:09:50 -04:00
Haim Ashkenazi
dd577bdf31 zsh-completion: added zsh-completion documentation. 2019-06-07 10:09:50 -04:00
Haim Ashkenazi
461a39d5b9 zsh-completion: removed forgotten function. 2019-06-07 10:09:50 -04:00
Haim Ashkenazi
df12a0a249 zsh-completion: two fixes for identifying flag usage:
Fixed after input from @eparis:
- Decide on option parameter by checking NoOptDefVal
- Slices also could be specified multiple times.
2019-06-07 10:09:50 -04:00
Haim Ashkenazi
e9ee8f0446 zsh-completion: removed the _dep_ files.
They were committed by mistake.
2019-06-07 10:09:50 -04:00
Haim Ashkenazi
ec4b8c974c zsh-completions: revised flags completion rendering + new features:
- If the flags are not bool the completion expects argument.
- You don't have to specify file extensions for file completion to
  work.
- Allow multiple occurrences of flag if type is stringArray.

Need to verify that these assumption are correct :)
2019-06-07 10:09:50 -04:00
Haim Ashkenazi
e8018e8612 zsh-completion template refactoring:
- removed redundant function
- improved other functions :)
- better names for other functions
2019-06-07 10:09:50 -04:00
Haim Ashkenazi
2662787697 zsh-completion: added support for subcommand description.
Also make the template more elegant on the way...
2019-06-07 10:09:50 -04:00
Haim Ashkenazi
f0508c8e76 zsh-completion ignores hidden commands and flags :) 2019-06-07 10:09:50 -04:00
Haim Ashkenazi
a15d099018 zsh-completion fixed reference to cmd name
cmd.Use is not the command name :). Found it once I figured out
that I need to execute the command in order to fully test the
generated completion.
2019-06-07 10:09:50 -04:00