Skip to content

Instantly share code, notes, and snippets.

@koral--
Last active May 6, 2018 22:20
Show Gist options
  • Save koral--/79a926f4a43dc33a8e6a12fcf453b26f to your computer and use it in GitHub Desktop.
Save koral--/79a926f4a43dc33a8e6a12fcf453b26f to your computer and use it in GitHub Desktop.
Bitrise Flutter step config model
// Config ...
type Config struct {
Version string `env:"version,required"`
WorkingDir string `env:"working_dir,dir"`
Commands []string `env:"commands,required"`
}
var config Config
if err := stepconf.Parse(&config); err != nil {
log.Errorf("Configuration error: %s\n", err)
os.Exit(7)
}
stepconf.Print(config)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment