refactor(cmd/joj3)!: conf #51
|  | @ -20,6 +20,21 @@ type Conf struct { | ||||||
| 		SandboxExecServer string `default:"localhost:5051"` | 		SandboxExecServer string `default:"localhost:5051"` | ||||||
| 		SandboxToken      string `default:""` | 		SandboxToken      string `default:""` | ||||||
| 		OutputPath        string `default:"stages_result.json"` | 		OutputPath        string `default:"stages_result.json"` | ||||||
|  | 		Stages            []struct { | ||||||
|  | 			Name     string | ||||||
|  | 			Group    string | ||||||
|  | 			Executor struct { | ||||||
|  | 				Name string | ||||||
|  | 				With struct { | ||||||
|  | 					Default stage.Cmd | ||||||
|  | 					Cases   []OptionalCmd | ||||||
|  | 				} | ||||||
|  | 			} | ||||||
|  | 			Parser struct { | ||||||
|  | 				Name string | ||||||
|  | 				With interface{} | ||||||
|  | 			} | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
| 	Teapot struct { | 	Teapot struct { | ||||||
| 		Skip            bool   `default:"true"` | 		Skip            bool   `default:"true"` | ||||||
|  | @ -28,21 +43,6 @@ type Conf struct { | ||||||
| 		FailedTablePath string `default:"failed-table.md"` | 		FailedTablePath string `default:"failed-table.md"` | ||||||
| 		GradingRepoName string `default:""` | 		GradingRepoName string `default:""` | ||||||
| 	} | 	} | ||||||
| 	Stages []struct { |  | ||||||
| 		Name     string |  | ||||||
| 		Group    string |  | ||||||
| 		Executor struct { |  | ||||||
| 			Name string |  | ||||||
| 			With struct { |  | ||||||
| 				Default stage.Cmd |  | ||||||
| 				Cases   []OptionalCmd |  | ||||||
| 			} |  | ||||||
| 		} |  | ||||||
| 		Parser struct { |  | ||||||
| 			Name string |  | ||||||
| 			With interface{} |  | ||||||
| 		} |  | ||||||
| 	} |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| type OptionalCmd struct { | type OptionalCmd struct { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user