summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-17 05:16:03 -0600
committerJeff Carr <[email protected]>2025-01-17 05:16:03 -0600
commit4f282cc30200c5896db2ae4677b20c6f8c1f1abc (patch)
tree3e7c8c5a1e3981dae05e6cb6117c424c20328da3
parente40251c7fd36d464b141f4b3f02c8ed80434f7cf (diff)
is it possible to make a username argv alias?v0.22.41
-rw-r--r--argvAutoshell.go4
-rw-r--r--main.go2
2 files changed, 4 insertions, 2 deletions
diff --git a/argvAutoshell.go b/argvAutoshell.go
index 9648908..94f4793 100644
--- a/argvAutoshell.go
+++ b/argvAutoshell.go
@@ -3,6 +3,7 @@ package main
import (
"fmt"
"os"
+ "os/user"
)
/*
@@ -20,7 +21,8 @@ func (args) doBashAuto() {
argv.doBashHelp()
switch argv.BashAuto[0] {
case "checkout":
- fmt.Println("user devel master")
+ usr, _ := user.Current()
+ fmt.Println("user devel master " + usr.Username)
case "commit":
fmt.Println("--all")
case "config":
diff --git a/main.go b/main.go
index cae7195..2153692 100644
--- a/main.go
+++ b/main.go
@@ -126,7 +126,7 @@ func main() {
doCheckDirtyAndConfigSave()
me.found = new(gitpb.Repos)
findDirty()
- me.forge.PrintHumanTable(me.found)
+ me.forge.PrintHumanTableDirty(me.found)
okExit("")
}