Documentation ¶
Overview ¶
creates an CLI entrypoint for managing a systemd-based service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Entrypoint ¶
func Entrypoint(serviceName string, makeAdditionalCommands func(string) []*cobra.Command) *cobra.Command
`makeAdditionalCommands` can be used to give `WithInstallAndUninstallCommands()`
func WithInstallAndUninstallCommands ¶
func WithInstallAndUninstallCommands(makeSvc func(string) (*systemdinstaller.ServiceDefinition, error)) func(string) []*cobra.Command
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.