Environment (#7)

* remote environ

* tagsfilter fixed and tested
This commit is contained in:
Pavel Vorobyov
2020-03-06 15:24:21 +03:00
committed by GitHub
parent 1168db5943
commit f3877d7e0b
6 changed files with 102 additions and 5 deletions

View File

@@ -135,6 +135,7 @@ func New(cfg *config.XCConfig, backend store.Backend) (*Cli, error) {
remote.SetDebug(cli.debug)
remote.SetUsePasswordManager(cli.usePasswordMgr)
remote.SetNumThreads(cli.sshThreads)
remote.SetRemoteEnvironment(cfg.RemoteEnvironment)
// interpreter
cli.setInterpreter("none", cfg.Interpreter)
@@ -232,6 +233,9 @@ func (c *Cli) OneCmd(line string) {
var argsLine string
line = strings.Trim(line, " \n\t")
if strings.HasPrefix(line, "#") {
return
}
cmdRunes, rest := split([]rune(line))
cmd := string(cmdRunes)