publish

package
v1.0.1006 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PublishCmd = &command.Command{
	Use:          "lakego:publish",
	Short:        "Publish any publishable assets from pkg packages.",
	Example:      "{execfile} lakego:publish",
	SilenceUsage: true,
	PreRun: func(cmd *command.Command, args []string) {
	},
	Run: func(cmd *command.Command, args []string) {
		publisher := &Publisher{
			provider: "",
			tags:     make([]string, 0),
		}
		publisher.Execute()
	},
}

*

  • 推送 *
  • > ./main lakego:publish [--force] [--provider=providerName] [--tag=tagname]
  • > main.exe lakego:publish [--force] [--provider=providerName] [--tag=tagname]
  • > go run main.go lakego:publish [--force] [--provider=providerName] [--tag=tagname] *
  • @create 2022-1-3
  • @author deatil

Functions

This section is empty.

Types

type Publisher

type Publisher struct {
	// contains filtered or unexported fields
}

*

  • 推送 *
  • @create 2022-1-3
  • @author deatil

func (*Publisher) CreateParentDirectory

func (this *Publisher) CreateParentDirectory(directory string) error

创建文件夹

func (*Publisher) Execute

func (this *Publisher) Execute()

运行

func (*Publisher) IsExist

func (this *Publisher) IsExist(fp string) bool

判断

func (*Publisher) PathsToPublish

func (this *Publisher) PathsToPublish(tag string) map[string]string

目录推送

func (*Publisher) PublishDirectory

func (this *Publisher) PublishDirectory(from string, to string)

推送文件夹

func (*Publisher) PublishFile

func (this *Publisher) PublishFile(from string, to string)

推送文件

func (*Publisher) PublishItem

func (this *Publisher) PublishItem(from string, to string)

不确定类型推送

func (*Publisher) PublishTag

func (this *Publisher) PublishTag(tag string)

标签推送

func (*Publisher) RemovePathPrefix

func (this *Publisher) RemovePathPrefix(pathName string) (string, error)

移除路径前缀

func (*Publisher) Status

func (this *Publisher) Status(from string, to string, typ string)

Status

Jump to

Keyboard shortcuts

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