Skip to content

Commit

Permalink
copyright api update
Browse files Browse the repository at this point in the history
  • Loading branch information
tangbin committed Jul 1, 2020
1 parent eb6d0ed commit a324519
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/climc/shell/misc/copyright.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func init() {
Copyright string `help:"The copyright"`
Email string `help:"The Email"`
Docs *string `help:"the Docs website address"`
License *string `help:"the license generator website address"`
}

R(&CopyrightUpdateOptions{}, "copyright-update", "update copyright", func(s *mcclient.ClientSession, args *CopyrightUpdateOptions) error {
Expand All @@ -47,6 +48,10 @@ func init() {
params.Add(jsonutils.NewString(*args.Docs), "docs")
}

if args.License != nil {
params.Add(jsonutils.NewString(*args.License), "license")
}

if len(args.Copyright) > 0 {
params.Add(jsonutils.NewString(args.Copyright), "copyright")
}
Expand Down

0 comments on commit a324519

Please sign in to comment.