If no argument is provided default to .

This commit is contained in:
2026-06-24 14:19:00 -04:00
parent 1e63040f92
commit bee4ed305e
6 changed files with 31 additions and 11 deletions

View File

@@ -9,7 +9,10 @@ import (
)
func Shell(cmd *cobra.Command, args []string) {
dir := args[0]
dir := "."
if len(args) > 0 {
dir = args[0]
}
name := getServerName(dir)
@@ -20,7 +23,10 @@ func Shell(cmd *cobra.Command, args []string) {
}
func Say(cmd *cobra.Command, args []string) {
dir := args[0]
dir := "."
if len(args) > 0 {
dir = args[0]
}
name := getServerName(dir)