MCPcopy Index your code
hub / github.com/rclone/rclone / rcloneEnv

Function rcloneEnv

cmdtest/cmdtest_test.go:66–75  ·  view source on GitHub ↗

rcloneEnv calls rclone with the given environment and arguments. The environment variables are in a single string separated by ; The test config file is automatically configured in RCLONE_CONFIG. The terminal output is returned as a string.

(env string, args ...string)

Source from the content-addressed store, hash-verified

64// The test config file is automatically configured in RCLONE_CONFIG.
65// The terminal output is returned as a string.
66func rcloneEnv(env string, args ...string) (string, error) {
67 envConfig := env
68 if testConfig != "" {
69 if envConfig != "" {
70 envConfig += ";"
71 }
72 envConfig += "RCLONE_CONFIG=" + testConfig
73 }
74 return rcloneExecMain(envConfig, args...)
75}
76
77// rclone calls rclone with the given arguments, E.g. "version","--help".
78// The test config file is automatically configured in RCLONE_CONFIG.

Callers 3

rcloneFunction · 0.85
TestCmdTestFunction · 0.85
TestEnvironmentVariablesFunction · 0.85

Calls 1

rcloneExecMainFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…