╭ changed ──╮ │src/try.zig│ ╰───────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ 993 io: std.Io, │ │ 994 key_path: []const u8, │ │ 995 │ │ 996 - pub fn run(self: @This(), web_port: u16, http_port: ?u16, ssh_port_maybe: ?u16) !void {│ │ 997 - _ = web_port; │ │ 998 - _ = http_port; │ │ 999 - const ssh_port = ssh_port_maybe orelse return error.SshDisabled; │ │ 996 + pub fn run(self: @This(), web_url: []const u8, ssh_url_maybe: ?[]const u8) !void { │ │ 997 + _ = web_url; │ │ 998 + const ssh_url = ssh_url_maybe orelse return error.SshDisabled; │ │ 999 std.debug.print( │ │1000 \\ │ │1001 \\connect to the TUI with: │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1003 - \\ ssh -p {d} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null localhost│ │1002 + \\ ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null {s} │ │1003 \\ │ │1004 \\create a git repo and push over SSH: │ │1005 \\ mkdir -p temp-try/client/test │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1008 \\ echo "hello" > hello.txt │ │1009 \\ git add hello.txt │ │1010 \\ git commit -m "let there be light" │ │1012 - \\ GIT_SSH_COMMAND='ssh -p {d} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -i {s}' git push localhost:admin:test HEAD:master│ │1011 + \\ GIT_SSH_COMMAND='ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -i {s}' git push {s}/admin:test HEAD:master │ │1012 \\ │ │1013 \\to quit, press enter. │ │1014 \\ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────╮ │1016 - , .{ ssh_port, ssh_port, self.key_path }); │ │1015 + , .{ ssh_url, self.key_path, ssh_url }); │ │1016 // portable stdin read via std.Io — equivalent to the │ │1017 // std.posix.read(STDIN_FILENO, ...) that doesn't compile│ │1018 // on windows. │ ╰───────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ │1033 session: *ui.Session, │ │1034 repo: *Repo, │ │1035 │ │1037 - pub fn run(self: @This(), web_port: u16, http_port: ?u16, ssh_port: ?u16) !void {│ │1036 + pub fn run(self: @This(), web_url: []const u8, ssh_url: ?[]const u8) !void { │ │1037 // launch the TUI; the footer points at whatever port was bound │ │1039 - self.session.web_port = web_port; │ │1040 - self.session.data.git_http_port = http_port; │ │1041 - self.session.data.git_ssh_port = ssh_port; │ │1038 + self.session.web_url = web_url; │ │1039 + self.session.data.git_http_url = web_url; │ │1040 + self.session.data.git_ssh_url = ssh_url; │ │1041 try hx.ui.run(self.io, self.allocator, self.session, self.repo); │ │1042 } │ │1043 }; │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────╯