From c49a067ac84ac5c1691ecf4db6a9bf791246899f Mon Sep 17 00:00:00 2001 From: bndw Date: Tue, 10 Feb 2026 21:29:20 -0800 Subject: Remove --module flag, add --public, make hooks smarter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Drop git-module type — the post-receive hook now checks for a Dockerfile before building, so repos without one simply skip deploy on push. This covers Go modules and libraries that only need vanity imports. Add --public flag to ship init for per-repo HTTPS clone visibility. Show visibility column in ship list. --- cmd/ship/list.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'cmd/ship/list.go') diff --git a/cmd/ship/list.go b/cmd/ship/list.go index a10b2ca..af5baf8 100644 --- a/cmd/ship/list.go +++ b/cmd/ship/list.go @@ -37,7 +37,7 @@ func runList(cmd *cobra.Command, args []string) error { } w := tabwriter.NewWriter(os.Stdout, 0, 0, 3, ' ', 0) - fmt.Fprintln(w, "NAME\tTYPE\tDOMAIN\tPORT") + fmt.Fprintln(w, "NAME\tTYPE\tVISIBILITY\tDOMAIN\tPORT") for name, app := range apps { port := "" if app.Type == "app" || app.Type == "git-app" { @@ -47,7 +47,14 @@ func runList(cmd *cobra.Command, args []string) error { if domain == "" { domain = "-" } - fmt.Fprintf(w, "%s\t%s\t%s\t%s\n", name, app.Type, domain, port) + visibility := "" + if app.Repo != "" { + visibility = "private" + if app.Public { + visibility = "public" + } + } + fmt.Fprintf(w, "%s\t%s\t%s\t%s\t%s\n", name, app.Type, visibility, domain, port) } w.Flush() return nil -- cgit v1.2.3