app

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultConfigFileName default configuration filename under docforge home folder
	DefaultConfigFileName = "config"
	// DocforgeHomeDir defines the docforge home location
	DocforgeHomeDir = ".docforge"
)

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(ctx context.Context) *cobra.Command

NewCommand creates a new root command and propagates the context and cancel function to its Run callback closure

Types

type Config added in v0.44.0

type Config struct {
	Options
	Writers
	hugo.Hugo
	RepositoryHosts []repositoryhosts.RepositoryHost
}

Config configuration of the reactor

type Options

type Options struct {
	DocumentWorkersCount         int      `mapstructure:"document-workers"`
	ValidationWorkersCount       int      `mapstructure:"validation-workers"`
	FailFast                     bool     `mapstructure:"fail-fast"`
	DestinationPath              string   `mapstructure:"destination"`
	ResourcesPath                string   `mapstructure:"resources-download-path"`
	ManifestPath                 string   `mapstructure:"manifest"`
	ResourceDownloadWorkersCount int      `mapstructure:"download-workers"`
	GhInfoDestination            string   `mapstructure:"github-info-destination"`
	DryRun                       bool     `mapstructure:"dry-run"`
	Resolve                      bool     `mapstructure:"resolve"`
	ExtractedFilesFormats        []string `mapstructure:"extracted-files-formats"`
	ValidateLinks                bool     `mapstructure:"validate-links"`
}

Options encapsulates the parameters for creating new Reactor objects

type Writers added in v0.44.0

type Writers struct {
	ResourceDownloadWriter writers.Writer
	GitInfoWriter          writers.Writer
	Writer                 writers.Writer
	DryRunWriter           writers.DryRunWriter
}

Writers struct that collects all the writesr

Jump to

Keyboard shortcuts

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