config

package
v0.0.0-...-fcfee00 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WSPDFpublishCmd = "ws-pdf-publish"
	PublishFileFlag = "publishFile"
	TargetPathFlag  = "targetPath"
	URLFolder       = "url"
	ConfigInfoStr   = "\n\t- userUID: %s\n\t- userGID: %s\n\t- targetPath: %s\n\t- targetPathURL: %s\n" +
		"\t- targetFile: %s\n\t- publishData: %+v\n"
)

Global constants

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdConfig

type CmdConfig struct {
	UserUID       string
	UserGID       string
	TargetPath    string
	TargetPathURL string
	TargetFile    string
	PublishData   *PublishData
}

CmdConfig struct

func GetCmdConfig

func GetCmdConfig(cmd *cobra.Command) (*CmdConfig, error)

GetCmdConfig function to get a new command config instance

type PublishData

type PublishData struct {
	File              string       `yaml:"file"`
	URLList           []PublishURL `mapstructure:"urls"`
	DockerParams      string       `yaml:"dockerParams"`
	WkhtmltopdfParams string       `yaml:"wkhtmltopdfParams"`
}

PublishData struct

type PublishURL

type PublishURL struct {
	URL  string `yaml:"url"`
	File string `yaml:"file"`
}

PublishURL struct

Jump to

Keyboard shortcuts

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