Documentation
¶
Index ¶
Constants ¶
const AgentLabel = "io.github.herbygillot.dockhand.serve"
AgentLabel names serve's launchd agent.
Variables ¶
This section is empty.
Functions ¶
func RewriteGitAgent ¶ added in v0.8.0
func RewriteGitAgent(ctx context.Context, s *settings.Settings, args []string) (string, bool, error)
RewriteGitAgent rewrites serve's own agent once where it names --git, which v0.8.0 removed: started with the agent's exact arguments, args, and they name --git <path>, serve installs the agent again with --tool git=<path> in its place and exits, launchd starting it with the new arguments. An agent dockhand installed would otherwise exit at the removed flag and be started again every ten seconds, dead until someone read the log. A person typing --git is still refused: only a file dockhand wrote is migrated. Whether it rewrote it is returned, with what to say.
Types ¶
This section is empty.