cmd

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: EUPL-1.2 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// GitCloner is the git cloner used by the command. It can be replaced for testing.
	GitCloner = vcs.NewGitCloner()
)
View Source
var (
	// GithubClient is the github client used by the command. It can be replaced for testing.
	GithubClient = github.NewGithubClient()
)
View Source
var RootCmd = NewRootCmd()

RootCmd represents the base command when called without any subcommands

Functions

func CollectPWA

func CollectPWA(client pwa.PWAClient, pwaURL string, outputFile string, format string, compression string, password string) (string, error)

func Execute

func Execute(log *slog.Logger) error

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetAllCmd

func GetAllCmd() *cobra.Command

func GetCollectCmd

func GetCollectCmd() *cobra.Command

func GetCollectGithubCmd

func GetCollectGithubCmd() *cobra.Command

func GetCollectWebsiteCmd

func GetCollectWebsiteCmd() *cobra.Command

func GetCompileCmd

func GetCompileCmd() *cobra.Command

func GetDecodeCmd

func GetDecodeCmd() *cobra.Command

func GetRelease

func GetRelease(log *slog.Logger, repoURL string, outputDir string, pack bool, file string, version string) (*github.RepositoryRelease, error)

func GetRunCmd

func GetRunCmd() *cobra.Command

func GetServeCmd

func GetServeCmd() *cobra.Command

func NewAllCmd

func NewAllCmd() *cobra.Command

func NewCollectCmd

func NewCollectCmd() *cobra.Command

func NewCollectGithubReleaseCmd

func NewCollectGithubReleaseCmd() *cobra.Command

func NewCollectGithubRepoCmd

func NewCollectGithubRepoCmd() *cobra.Command

NewCollectGithubRepoCmd creates a new cobra command for collecting a single git repository.

func NewCollectWebsiteCmd

func NewCollectWebsiteCmd() *cobra.Command

func NewCompileCmd

func NewCompileCmd() *cobra.Command

func NewDecodeCmd

func NewDecodeCmd() *cobra.Command

func NewRootCmd

func NewRootCmd() *cobra.Command

func NewRunCmd

func NewRunCmd() *cobra.Command

func NewServeCmd

func NewServeCmd() *cobra.Command

Types

type CollectPWACmd

type CollectPWACmd struct {
	cobra.Command
	PWAClient pwa.PWAClient
}

func NewCollectPWACmd

func NewCollectPWACmd() *CollectPWACmd

NewCollectPWACmd creates a new collect pwa command

Jump to

Keyboard shortcuts

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