cmd

package
v0.0.0-...-7396d26 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Overview

the root command is the entrypoint for the gordon cli (default: client)

the serve command is used to start the gordon server Path: internal/cli/cmd/serve.go

This upload feature is based on pocketbase's ghupdate command. Thank you for your work, @Gani Georgiev Check the original code here: https://github.com/pocketbase/pocketbase/blob/master/plugins/ghupdate/ghupdate.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeployCommand

func NewDeployCommand(a *cli.App) *cobra.Command

func NewPingCommand

func NewPingCommand(a *cli.App) *cobra.Command

func NewRootCommand

func NewRootCommand(a *cli.App) *cobra.Command

NewRootCommand creates a new root command

func NewServeCommand

func NewServeCommand(a *server.App) *cobra.Command

NewServeCommand creates a new serve command

func NewUpdateCommand

func NewUpdateCommand(a *cli.App) *cobra.Command

Types

type Config

type Config struct {
	Owner             string
	Repo              string
	ArchiveExecutable string
	Context           context.Context
	HttpClient        HttpClient
}

type HttpClient

type HttpClient interface {
	Do(req *http.Request) (*http.Response, error)
}

Jump to

Keyboard shortcuts

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