aboutsummaryrefslogtreecommitdiff
path: root/awwan.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-03-22 20:11:57 +0700
committerShulhan <ms@kilabit.info>2024-03-22 20:12:34 +0700
commit62bf073d3d5b55a7e76cf5d9cebefdc9c00cbcee (patch)
treeecd71be835eea9fcadca2d1295c3f7dc9c11b371 /awwan.go
parent4ec4ca7d83320151bdc1894f0b2a5d31661ad6b0 (diff)
downloadawwan-62bf073d3d5b55a7e76cf5d9cebefdc9c00cbcee.tar.xz
all: replace module "share" with "pakakeh.go"
The "share" project has been moved to SourceHut with new name "pakakeh.go".
Diffstat (limited to 'awwan.go')
-rw-r--r--awwan.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/awwan.go b/awwan.go
index 68d474b..6ea9d1b 100644
--- a/awwan.go
+++ b/awwan.go
@@ -13,8 +13,8 @@ import (
"strings"
"time"
- "github.com/shuLhan/share/lib/ini"
- "github.com/shuLhan/share/lib/ssh/config"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/ini"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/sshconfig"
"git.sr.ht/~shulhan/awwan/internal"
)
@@ -69,7 +69,7 @@ type Awwan struct {
cryptoc *cryptoContext
// All the Host values from SSH config files.
- sshConfig *config.Config
+ sshConfig *sshconfig.Config
httpd *httpServer
@@ -406,7 +406,7 @@ func (aww *Awwan) Play(ctx context.Context, req *ExecRequest) (err error) {
sessionDir = filepath.Dir(req.scriptPath)
ses *Session
- sshSection *config.Section
+ sshSection *sshconfig.Section
pos linePosition
)
@@ -504,7 +504,7 @@ func (aww *Awwan) loadSSHConfig() (err error) {
var (
logp = `loadSSHConfig`
- baseDirConfig *config.Config
+ baseDirConfig *sshconfig.Config
homeDir string
configFile string
)
@@ -515,14 +515,14 @@ func (aww *Awwan) loadSSHConfig() (err error) {
}
configFile = filepath.Join(homeDir, defSSHDir, defSSHConfig)
- aww.sshConfig, err = config.Load(configFile)
+ aww.sshConfig, err = sshconfig.Load(configFile)
if err != nil {
return fmt.Errorf("%s: %w", logp, err)
}
configFile = filepath.Join(aww.BaseDir, defSSHDir, defSSHConfig)
- baseDirConfig, err = config.Load(configFile)
+ baseDirConfig, err = sshconfig.Load(configFile)
if err != nil {
return fmt.Errorf("%s: %w", logp, err)
}