Documentation ¶
Index ¶
- Variables
- type Publisher
- func (this *Publisher) CreateParentDirectory(directory string) error
- func (this *Publisher) Execute()
- func (this *Publisher) IsExist(fp string) bool
- func (this *Publisher) PathsToPublish(tag string) map[string]string
- func (this *Publisher) PublishDirectory(from string, to string)
- func (this *Publisher) PublishFile(from string, to string)
- func (this *Publisher) PublishItem(from string, to string)
- func (this *Publisher) PublishTag(tag string)
- func (this *Publisher) RemovePathPrefix(pathName string) (string, error)
- func (this *Publisher) Status(from string, to string, typ string)
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 (*Publisher) PathsToPublish ¶
目录推送
func (*Publisher) PublishDirectory ¶
推送文件夹
func (*Publisher) RemovePathPrefix ¶
移除路径前缀
Click to show internal directories.
Click to hide internal directories.