From 33f820f124ffcf9efbd07d9f55202bbe9e893027 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Mon, 23 Feb 2026 21:14:29 -0800 Subject: [PATCH] sandlot web --- src/cli.ts | 6 +++--- src/commands/{browse.html => diff.html} | 19 ++++--------------- src/commands/{browse.ts => web.ts} | 13 +++++++------ src/git.ts | 2 +- 4 files changed, 15 insertions(+), 25 deletions(-) rename src/commands/{browse.html => diff.html} (65%) rename src/commands/{browse.ts => web.ts} (59%) diff --git a/src/cli.ts b/src/cli.ts index b191e59..97a7629 100755 --- a/src/cli.ts +++ b/src/cli.ts @@ -16,7 +16,7 @@ import { action as rebaseAction } from "./commands/rebase.ts" import { action as saveAction } from "./commands/save.ts" import { action as diffAction } from "./commands/diff.ts" import { action as showAction } from "./commands/show.ts" -import { action as browseAction } from "./commands/browse.ts" +import { action as webAction } from "./commands/web.ts" import { action as logAction } from "./commands/log.ts" import { action as dirAction } from "./commands/dir.ts" import { action as editAction } from "./commands/edit.ts" @@ -104,10 +104,10 @@ program .action(showAction) program - .command("browse") + .command("web") .argument("", "branch name") .description("Open the branch diff in a web browser") - .action(browseAction) + .action(webAction) program .command("save") diff --git a/src/commands/browse.html b/src/commands/diff.html similarity index 65% rename from src/commands/browse.html rename to src/commands/diff.html index c2fbef9..22184f3 100644 --- a/src/commands/browse.html +++ b/src/commands/diff.html @@ -4,6 +4,7 @@ {{BRANCH}} — sandlot diff + @@ -41,6 +29,7 @@
+