Expand pipeline panes and select the verified Docker client endpoint
This commit is contained in:
@@ -257,6 +257,23 @@ func (a App) Run(ctx context.Context, args []string) error {
|
||||
_, err := fmt.Fprintln(a.Out, "Deleted draft:", pos[0])
|
||||
return err
|
||||
}
|
||||
if command != "drafts" && os.Getenv("PIPELINES_URL") == "" {
|
||||
explicit := false
|
||||
f.Visit(func(value *flag.Flag) {
|
||||
if value.Name == "url" {
|
||||
explicit = true
|
||||
}
|
||||
})
|
||||
if !explicit {
|
||||
configured, err := client.ConfiguredURL()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if configured != "" {
|
||||
o.url = configured
|
||||
}
|
||||
}
|
||||
}
|
||||
if command == "tui" {
|
||||
if len(pos) > 0 {
|
||||
return fmt.Errorf("tui takes no arguments")
|
||||
|
||||
Reference in New Issue
Block a user