(zoneId string)
| 108 | } |
| 109 | |
| 110 | func getAllVariables(zoneId string) error { |
| 111 | commandData := wshrpc.CommandVarData{ |
| 112 | ZoneId: zoneId, |
| 113 | FileName: getVarFileName, |
| 114 | } |
| 115 | |
| 116 | vars, err := wshclient.GetAllVarsCommand(RpcClient, commandData, &wshrpc.RpcOpts{Timeout: 2000}) |
| 117 | if err != nil { |
| 118 | return fmt.Errorf("getting variables: %w", err) |
| 119 | } |
| 120 | |
| 121 | terminator := "\n" |
| 122 | if getVarNullTerminate { |
| 123 | terminator = "\x00" |
| 124 | } |
| 125 | |
| 126 | for _, v := range vars { |
| 127 | WriteStdout("%s=%s%s", v.Key, v.Val, terminator) |
| 128 | } |
| 129 | |
| 130 | return nil |
| 131 | } |
no test coverage detected