private static CLI_and_API_Version GetCLI_and_API_Version(string output_of___show_ver) { var lines = output_of___show_ver.SplitOnNewLines(); var result = new CLI_and_API_Version { CLI_version = lines[0].Substring(lines[0].IndexOf(" = ") + 3), API_version = lines[1].Substring(lines[0].IndexOf(" = ") + 3) }; return(result); }
public void GetCLI_and_API_version() { var output = ExecuteCommand(TW_CLI_path, TW_CLI_ParameterType.CLI_and_API_version); Versions = GetCLI_and_API_Version(output); }