Skip to content

Commit fb3fb48

Browse files
authored
feat: connect to $PWD with . (#26)
1 parent 7a32bb7 commit fb3fb48

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

session/path.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ import (
1111
)
1212

1313
func DeterminePath(choice string) (string, error) {
14+
if choice == "." {
15+
cwd, err := os.Getwd()
16+
if err != nil {
17+
return "", err
18+
}
19+
return cwd, nil
20+
}
1421
fullPath := dir.FullPath(choice)
1522
if path.IsAbs(fullPath) {
1623
return fullPath, nil

0 commit comments

Comments
 (0)