Skip to content
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

Flag Generation in the CLI #836

Merged
merged 34 commits into from
Aug 7, 2019
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
e01e3c5
Fix the unaligned indents for the commands that have no categories
mingrammer Mar 6, 2019
9766be8
get latest changes from master
mingrammer Mar 6, 2019
32ddef5
finish generation of flag types for cli package
asahasrabuddhe Aug 3, 2019
16c7a60
finish generation of flag types for altsrc package
asahasrabuddhe Aug 3, 2019
c133a5a
add explicit true/false choices for value and dest keys due to go def…
asahasrabuddhe Aug 3, 2019
add69c7
updated flag types generated courtesy fg cli
asahasrabuddhe Aug 3, 2019
d209be3
update go generate command
asahasrabuddhe Aug 3, 2019
9260850
Merge branch 'master' into flag-type-generation-golang
asahasrabuddhe Aug 3, 2019
d1ded77
rename utility from fg > flag-generator
asahasrabuddhe Aug 4, 2019
065fe9e
change structure to embed source json and template files
asahasrabuddhe Aug 4, 2019
2a08494
move around code
asahasrabuddhe Aug 4, 2019
c4fc88e
Merge branch 'flag-type-generation-golang' of https://github.com/urfa…
asahasrabuddhe Aug 4, 2019
c676ed4
indentation fixes in template
asahasrabuddhe Aug 4, 2019
86e1021
remove redundant go generate from altsrc
asahasrabuddhe Aug 4, 2019
04948f2
generate test with go generate
asahasrabuddhe Aug 4, 2019
826954c
update app name and remove version
asahasrabuddhe Aug 4, 2019
b6bfbe9
update appveyor to go 1.11, add support for code coverage generation …
asahasrabuddhe Aug 4, 2019
3655570
remove legacy version check code
asahasrabuddhe Aug 4, 2019
fb4cea5
add new generation logic to travis
asahasrabuddhe Aug 4, 2019
4b0a410
fix travis build
asahasrabuddhe Aug 4, 2019
8547458
remove zero mod fs
asahasrabuddhe Aug 4, 2019
58ae5eb
move entire build system to go
asahasrabuddhe Aug 4, 2019
7a6f3d4
fix tests
asahasrabuddhe Aug 4, 2019
798e1f3
fix spacing issue
asahasrabuddhe Aug 4, 2019
a7f0d86
add zero mod fs back and commit file with latest ts
asahasrabuddhe Aug 4, 2019
489d92d
add missing os package
asahasrabuddhe Aug 4, 2019
ac5c97b
add latest assets file
asahasrabuddhe Aug 4, 2019
adfe6a0
indenting fix
asahasrabuddhe Aug 6, 2019
5070d00
move packages slice to global scope
asahasrabuddhe Aug 6, 2019
e8bbb4c
remove unnecessary sprintf
asahasrabuddhe Aug 6, 2019
6ee5b89
move build.go to root
asahasrabuddhe Aug 6, 2019
c19938f
update ci commands
asahasrabuddhe Aug 6, 2019
24de27b
Merge branch 'master' into flag-type-generation-golang
asahasrabuddhe Aug 6, 2019
e2de8c7
update readme with correct error message, add 1.12 and 1.11 to travis
asahasrabuddhe Aug 7, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.coverprofile
node_modules/
vendor
2 changes: 1 addition & 1 deletion altsrc/altsrc.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package altsrc

//go:generate python ../generate-flag-types altsrc -i ../flag-types.json -o flag_generated.go
asahasrabuddhe marked this conversation as resolved.
Show resolved Hide resolved
//go:generate fg -p altsrc -i ../flag-types.json -o flag_generated.go
108 changes: 54 additions & 54 deletions altsrc/flag_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
// }
package cli

//go:generate python ./generate-flag-types cli -i flag-types.json -o flag_generated.go
//go:generate fg -p cli -i flag-types.json -o flag_generated.go
Loading