Documentation
¶
Index ¶
- Variables
- func CollectPWA(client pwa.PWAClient, pwaURL string, outputFile string, format string, ...) (string, error)
- func Execute(log *slog.Logger) error
- func GetAllCmd() *cobra.Command
- func GetCollectCmd() *cobra.Command
- func GetCollectGithubCmd() *cobra.Command
- func GetCollectWebsiteCmd() *cobra.Command
- func GetCompileCmd() *cobra.Command
- func GetDecodeCmd() *cobra.Command
- func GetRelease(log *slog.Logger, repoURL string, outputDir string, pack bool, file string, ...) (*github.RepositoryRelease, error)
- func GetRunCmd() *cobra.Command
- func GetServeCmd() *cobra.Command
- func NewAllCmd() *cobra.Command
- func NewCollectCmd() *cobra.Command
- func NewCollectGithubReleaseCmd() *cobra.Command
- func NewCollectGithubRepoCmd() *cobra.Command
- func NewCollectWebsiteCmd() *cobra.Command
- func NewCompileCmd() *cobra.Command
- func NewDecodeCmd() *cobra.Command
- func NewRootCmd() *cobra.Command
- func NewRunCmd() *cobra.Command
- func NewServeCmd() *cobra.Command
- type CollectPWACmd
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 Execute ¶
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 GetCollectCmd ¶
func GetCollectGithubCmd ¶
func GetCollectWebsiteCmd ¶
func GetCompileCmd ¶
func GetDecodeCmd ¶
func GetRelease ¶
func GetServeCmd ¶
func NewCollectCmd ¶
func NewCollectGithubRepoCmd ¶
NewCollectGithubRepoCmd creates a new cobra command for collecting a single git repository.
func NewCollectWebsiteCmd ¶
func NewCompileCmd ¶
func NewDecodeCmd ¶
func NewRootCmd ¶
func NewServeCmd ¶
Types ¶
type CollectPWACmd ¶
func NewCollectPWACmd ¶
func NewCollectPWACmd() *CollectPWACmd
NewCollectPWACmd creates a new collect pwa command
Click to show internal directories.
Click to hide internal directories.