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

Function cmdAgent

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

Source from the content-addressed store, hash-verified

220}
221
222func cmdAgent() {
223 cfg, _ := config.Load()
224 fs := flag.NewFlagSet("agent", flag.ExitOnError)
225 sock := fs.String("socket", cfg.Socket, "unix socket path for SSH agent")
226 require := fs.Bool("require-touch-id-per-sign", cfg.RequireTouchPerSign, "require Touch ID on every signature")
227 ttl := fs.Int("unlock-ttl-seconds", cfg.UnlockTTLSeconds, "Touch ID unlock TTL in seconds (secure mode)")
228 fs.Parse(os.Args[2:])
229 log.Init(cfg)
230 err := agentserver.StartWithOptions(*sock, *require, *ttl)
231 if err != nil {
232 fatal(err)
233 }
234}
235
236func cmdRemove() {
237 fs := flag.NewFlagSet("remove", flag.ExitOnError)

Callers 1

mainFunction · 0.85

Calls 3

LoadFunction · 0.92
InitFunction · 0.92
fatalFunction · 0.85

Tested by

no test coverage detected