serve

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const AgentLabel = "io.github.herbygillot.dockhand.serve"

AgentLabel names serve's launchd agent.

Variables

This section is empty.

Functions

func Command

func Command(s *settings.Settings, streams term.Streams) *cobra.Command

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL