Commit add52772 authored by Jonathan DeMasi's avatar Jonathan DeMasi

adding outline and such

parent 1f67fdd1
......@@ -25,25 +25,41 @@ type Pipeline struct {
func NextStep() *Step {
step := new(Step)
// Name our step
fmt.Print("Enter a name for this step: ")
reader := bufio.NewReader(os.Stdin)
step.name, _ = reader.ReadString('\n')
// # Of cores for step
fmt.Print("Enter the number of cores this step needs: ")
_, _ = fmt.Scanf("%d", &step.cores)
// Amount of RAM
fmt.Print("Enter the RAM required for this step including a unit (M or G): ")
reader = bufio.NewReader(os.Stdin)
step.mem, _ = reader.ReadString('\n')
// Walltime
// Partition, deterined from walltime
// To send mail or not
// Command itself
return(step)
}
func main() {
// Intro text
fmt.Println("Welcome to JonJon's Pipeline Builder!")
fmt.Println("All spaces will be replaced with _ in names.")
fmt.Println("Spaces in paths need to be escaped with '\\'")
// Initialize a new pipeline
pipeline := new(Pipeline)
fmt.Print("Enter a name for this pipeline: ")
reader := bufio.NewReader(os.Stdin)
pipeline.name, _ = reader.ReadString('\n')
fmt.Println("Where would you like to put the error and output files for this pipeline? The directory must already exist.")
fmt.Println("Where would you like to put the error and output files for this pipeline? If it doesn't exist, our wrapper will create it.")
reader = bufio.NewReader(os.Stdin)
pipeline.eofiles, _ = reader.ReadString('\n')
// We need AT LEAST one step
stepper := NextStep()
pipeline.steps = append(pipeline.steps, *stepper)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment