• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

UiPath / uipathcli / 11162261041

03 Oct 2024 12:46PM UTC coverage: 90.424% (-0.02%) from 90.447%
11162261041

push

github

thschmitt
Create command abstraction and split up command builder

Added command and flag definition structures to separate building the
command metadata and actually rendering the CLI commands.

Moved all the interaction with the cli/v2 module in the cli.go
source file which simplifies the interactive with the module and
abstracts the details away.

The change also moves out some parts from the command_builder which
grew in complexity.

463 of 478 new or added lines in 8 files covered. (96.86%)

1 existing line in 1 file now uncovered.

4268 of 4720 relevant lines covered (90.42%)

1.02 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

72.73
/commandline/flag_type.go
1
package commandline
2

3
import "fmt"
4

5
type FlagType int
6

7
const (
8
        FlagTypeString FlagType = iota + 1
9
        FlagTypeInteger
10
        FlagTypeBoolean
11
        FlagTypeStringArray
12
)
13

14
func (t FlagType) String() string {
1✔
15
        switch t {
1✔
16
        case FlagTypeString:
1✔
17
                return "string"
1✔
18
        case FlagTypeInteger:
1✔
19
                return "integer"
1✔
20
        case FlagTypeBoolean:
1✔
21
                return "boolean"
1✔
NEW
22
        case FlagTypeStringArray:
×
NEW
23
                return "stringArray"
×
24
        }
NEW
25
        panic(fmt.Sprintf("Unknown flag type: %d", int(t)))
×
26
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc