Skip to content

Commit

Permalink
Merge pull request #2 from zshel/master
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ authored Mar 11, 2022
2 parents 9e6165e + d239593 commit 2a20b64
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmd/releasr/releasr.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,13 @@ func main() {
Action: func(c *cli.Context) error {

configuration, _ := config.Create()
configuration.Set(config.PACKAGR_SCM, c.String("scm"))
configuration.Set(config.PACKAGR_PACKAGE_TYPE, c.String("package_type"))

if c.IsSet("scm") {
configuration.Set(config.PACKAGR_SCM, c.String("scm"))
}
if c.IsSet("package_type") {
configuration.Set(config.PACKAGR_PACKAGE_TYPE, c.String("package_type"))
}

fmt.Println("package type:", configuration.GetString(config.PACKAGR_PACKAGE_TYPE))
fmt.Println("scm:", configuration.GetString(config.PACKAGR_SCM))
Expand Down

0 comments on commit 2a20b64

Please sign in to comment.