app

package
v0.59.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 39 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func NewGenTocCmd added in v0.58.0

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

NewGenTocCmd returns the gen-toc subcommand.

Types

type Config added in v0.44.0

type Config struct {
	Options
	Writers
	hugo.Hugo
	RepositoryHosts []repositoryhost.Interface
}

Config configuration of the reactor

type Options

type Options struct {
	DocumentWorkersCount         int      `mapstructure:"document-workers"`
	FailFast                     bool     `mapstructure:"fail-fast"`
	DestinationPath              string   `mapstructure:"destination"`
	ManifestPath                 string   `mapstructure:"manifest"`
	ResourceDownloadWorkersCount int      `mapstructure:"download-workers"`
	GhInfoDestination            string   `mapstructure:"github-info-destination"`
	DryRun                       bool     `mapstructure:"dry-run"`
	CleanDestination             bool     `mapstructure:"clean-destination"`
	ContentFileFormats           []string `mapstructure:"content-files-formats"`
}

Options encapsulates the parameters for creating new Reactor objects

type Writers added in v0.44.0

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

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