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

UiPath / uipathcli / 14489885750

16 Apr 2025 09:51AM UTC coverage: 90.044% (-0.3%) from 90.362%
14489885750

push

github

thschmitt
Offline support for modules

Added new command `uipath config offline` which configures the uipathcli
for offline mode which is useful in air-gapped environments.

The offline command downloads all required modules (like uipcli) to a
folder called `modules` next to the executable.

Extended the uipathcli to check first in the local `modules` folder
before downloading the dependency from the configured remote url.

127 of 184 new or added lines in 6 files covered. (69.02%)

6195 of 6880 relevant lines covered (90.04%)

1.0 hits per line

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

0.0
/commandline/offline_command_handler.go
1
package commandline
2

3
import (
4
        "github.com/UiPath/uipathcli/log"
5
        "github.com/UiPath/uipathcli/plugin"
6
)
7

8
// The offlineCommandHandler downloads all external resources to a local folder
9
// so that the uipathcli can be used without downloading any additional external
10
// dependencies. This can be useful in airgapped scenarios.
11
type offlineCommandHandler struct {
12
        Logger log.Logger
13
}
14

NEW
15
func (h offlineCommandHandler) Execute() error {
×
NEW
16
        moduleManager := plugin.NewModuleManager(h.Logger)
×
NEW
17
        return moduleManager.Offline()
×
NEW
18
}
×
19

NEW
20
func newOfflineCommandHandler(logger log.Logger) *offlineCommandHandler {
×
NEW
21
        return &offlineCommandHandler{logger}
×
NEW
22
}
×
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

© 2025 Coveralls, Inc