diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 17bd625..eee7dae 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -25,7 +25,4 @@ jobs: run: go mod download - name: Build - run: go build -o session -v ./cmd - - # - name: Test - # run: go test -v ./... + run: go build -v ./cmd/session diff --git a/.gitignore b/.gitignore index 2b3b87b..93c3bca 100644 --- a/.gitignore +++ b/.gitignore @@ -18,7 +18,6 @@ # Go workspace file go.work -.configrc .vscode .deprecated config.yaml diff --git a/cmd/main.go b/cmd/session/main.go similarity index 99% rename from cmd/main.go rename to cmd/session/main.go index 41f7d95..60516fc 100644 --- a/cmd/main.go +++ b/cmd/session/main.go @@ -37,4 +37,3 @@ func main() { // ! ===================================================================== ! // // ! ===================================================================== ! // // ! ===================================================================== ! // - diff --git a/util/run_command.go b/util/run_command.go index 86136fd..80ce70c 100644 --- a/util/run_command.go +++ b/util/run_command.go @@ -59,16 +59,3 @@ func StartTmuxSession(sessionName string, editorCmd string) error { return nil } -// // maybe... -// func run(command []string) (*exec.Cmd, error) { -// cmd := exec.Command(command[0], command[1:]...) -// cmd.Stdout = os.Stdout -// cmd.Stderr = os.Stderr -// cmd.Stdin = os.Stdin -// -// if err := cmd.Run(); err != nil { -// return nil, fmt.Errorf("error running command %v: %v", command, err) -// } -// -// return cmd, nil -// }