func Contracts(sous *core.Sous, args []string) { contractsFlags.Parse(args) args = contractsFlags.Args() state, err := deploy.Parse(".") if err != nil { cli.Fatalf(err.Error()) } _ = state.Contracts cli.Success() }
func ParseState(sous *core.Sous, args []string) { stateDir := getStateDir(args) state, err := deploy.Parse(stateDir) if err != nil { cli.Fatalf("%s", err) } merged, err := state.Merge() if err != nil { cli.Fatalf("%s", err) } out, err := yaml.Marshal(merged) if err != nil { cli.Fatalf("%s", err) } cli.Outf(string(out)) cli.Success() }