Last active
          May 6, 2018 22:20 
        
      - 
      
 - 
        
Save koral--/79a926f4a43dc33a8e6a12fcf453b26f to your computer and use it in GitHub Desktop.  
    Bitrise Flutter step config model
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Config ... | |
| type Config struct { | |
| Version string `env:"version,required"` | |
| WorkingDir string `env:"working_dir,dir"` | |
| Commands []string `env:"commands,required"` | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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