repos / pico

pico services mono repo
git clone https://github.com/picosh/pico.git

commit
4105299
parent
7d6b68e
author
Eric Bower
date
2025-01-19 10:48:08 -0500 EST
chore(pgs): rm deprecated cmd
1 files changed,  +2, -15
M pgs/cli.go
+2, -15
 1@@ -52,7 +52,7 @@ func projectTable(styles common.Styles, projects []*db.Project, width int) *tabl
 2 	return t
 3 }
 4 
 5-func getHelpText(styles common.Styles, userName string, width int) string {
 6+func getHelpText(styles common.Styles, width int) string {
 7 	helpStr := "Commands: [help, stats, ls, fzf, rm, link, unlink, prune, retain, depends, acl, cache]\n"
 8 	helpStr += styles.Note.Render("NOTICE:") + " *must* append with `--write` for the changes to persist.\n"
 9 
10@@ -201,17 +201,7 @@ func (c *Cmd) RmProjectAssets(projectName string) error {
11 }
12 
13 func (c *Cmd) help() {
14-	c.output(getHelpText(c.Styles, c.User.Name, c.Width))
15-}
16-
17-func (c *Cmd) statsByProject(_ string) error {
18-	msg := fmt.Sprintf(
19-		"%s\n\nRun %s to access pico's analytics TUI",
20-		c.Styles.Logo.Render("DEPRECATED"),
21-		c.Styles.Code.Render("ssh pico.sh"),
22-	)
23-	c.output(c.Styles.RoundedBorder.Render(msg))
24-	return nil
25+	c.output(getHelpText(c.Styles, c.Width))
26 }
27 
28 func (c *Cmd) stats(cfgMaxSize uint64) error {
29@@ -254,9 +244,6 @@ func (c *Cmd) stats(cfgMaxSize uint64) error {
30 		Rows(data)
31 	c.output(t.String())
32 
33-	c.output("Site usage analytics:")
34-	_ = c.statsByProject("")
35-
36 	return nil
37 }
38