// stagesRunner lists all the stages for the specified runner
stagesRunner lists all the stages for the specified runner
// stagesRunner lists all the stages for the specified runner
func stagesRunner(ctx context.Context, runner string) error {
	resp, err := runnerService.Get(ctx, avian.RunnerGetRequest{Name: runner})
	if err != nil {
		return err
	}
	var headers table.Row
	var body []table.Row
	headers = table.Row{"ID", "Runner", "Stage", "Status"}
	for _, s := range resp.Runner.Stages {
		if !s.Nil() {
			body = append(body, table.Row{s.ID, resp.Runner.Name, s.Name(), s.Status()})
		}
	}
	fmt.Fprintf(os.Stdout, "%s\n", pretty.Format(headers, body))
	return nil
}
func stagesRunner ( ctx context . Context , runner string ) error { resp , err := runnerService . Get ( ctx , avian . RunnerGetRequest { Name : runner } ) if err != nil { return err } var headers table . Row var body [ ] table . Row headers = table . Row { " " , " " , " " , " " } for _ , s := range resp . Runner . Stages { if ! s . Nil ( ) { body = append ( body , table . Row { s . ID , resp . Runner . Name , s . Name ( ) , s . Status ( ) } ) } } fmt . Fprintf ( os . Stdout , " \n " , pretty . Format ( headers , body ) ) return nil }
stagesRunner lists all the stages for the specified runner
stagesRunner lists all the stages for the specified runner