systemdcli

package
v0.0.0-...-a5f7211 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

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