2024-06-01 16:06:55 +01:00
|
|
|
// SPDX-FileCopyrightText: 2024 Dan Anglin <d.n.i.anglin@gmail.com>
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2024-05-23 18:06:49 +01:00
|
|
|
package executor
|
|
|
|
|
|
|
|
import "strings"
|
|
|
|
|
|
|
|
type AccountNames []string
|
|
|
|
|
|
|
|
func (a *AccountNames) String() string {
|
|
|
|
return strings.Join(*a, ", ")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a *AccountNames) Set(value string) error {
|
|
|
|
if len(value) > 0 {
|
|
|
|
*a = append(*a, value)
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type TopLevelFlags struct {
|
|
|
|
ConfigDir string
|
2024-05-31 21:18:11 +01:00
|
|
|
NoColor *bool
|
2024-05-23 18:06:49 +01:00
|
|
|
}
|