MCPcopy Create free account
hub / github.com/UiPath/uipathcli / createOfflineCommand

Method createOfflineCommand

commandline/command_builder.go:665–677  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

663}
664
665func (b CommandBuilder) createOfflineCommand() *CommandDefinition {
666 flags := NewFlagBuilder().
667 AddHelpFlag().
668 Build()
669
670 return NewCommand("offline", "Downloads external dependencies", "Downloads external dependencies for offline mode").
671 WithFlags(flags).
672 WithAction(func(context *CommandExecContext) error {
673 logger := b.logger(false, b.StdErr)
674 handler := newOfflineCommandHandler(b.StdOut, logger)
675 return handler.Execute()
676 })
677}
678
679func (b CommandBuilder) loadDefinitions(args []string, serviceVersion string) ([]parser.Definition, error) {
680 if len(args) <= 1 || strings.HasPrefix(args[1], "-") {

Callers 1

createConfigCommandMethod · 0.95

Calls 9

loggerMethod · 0.95
NewFlagBuilderFunction · 0.85
newOfflineCommandHandlerFunction · 0.85
AddHelpFlagMethod · 0.80
WithActionMethod · 0.80
WithFlagsMethod · 0.80
NewCommandFunction · 0.70
ExecuteMethod · 0.65
BuildMethod · 0.45

Tested by

no test coverage detected