MCPcopy Create free account
hub / github.com/Mister-leo/fssh / cmdStatus

Function cmdStatus

cmd/fssh/main.go:211–220  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

209}
210
211func cmdStatus() {
212 exists, err := keychain.MasterKeyExists()
213 if err != nil {
214 fatal(err)
215 }
216 fmt.Printf("master_key=%v\n", exists)
217 dir := store.KeysDir()
218 _, err = os.Stat(dir)
219 fmt.Printf("store_dir=%s exists=%v\n", dir, err == nil)
220}
221
222func cmdAgent() {
223 cfg, _ := config.Load()

Callers 1

mainFunction · 0.85

Calls 3

MasterKeyExistsFunction · 0.92
KeysDirFunction · 0.92
fatalFunction · 0.85

Tested by

no test coverage detected