content

package
v0.1.55 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(cli labcli.CLI) *cobra.Command

func RunPushOnce added in v0.1.33

func RunPushOnce(ctx context.Context, cli labcli.CLI, config PushConfig) error

func RunPushWatch added in v0.1.33

func RunPushWatch(ctx context.Context, cli labcli.CLI, config PushConfig) error

Types

type AuthoredContent

type AuthoredContent struct {
	Challenges []api.Challenge `json:"challenges" yaml:"challenges"`
	Tutorials  []api.Tutorial  `json:"tutorials" yaml:"tutorials"`
	Roadmaps   []api.Roadmap   `json:"roadmaps" yaml:"roadmaps"`
	SkillPaths []api.SkillPath `json:"skill-paths" yaml:"skill-paths"`
	Courses    []api.Course    `json:"courses"    yaml:"courses"`
	Trainings  []api.Training  `json:"trainings"  yaml:"trainings"`
}

type DirOptions added in v0.1.33

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

func (*DirOptions) AddDirFlag added in v0.1.33

func (o *DirOptions) AddDirFlag(fs *pflag.FlagSet, msg string)

func (*DirOptions) ContentDir added in v0.1.33

func (o *DirOptions) ContentDir(name string) (string, error)

func (*DirOptions) IsSet added in v0.1.33

func (o *DirOptions) IsSet() bool

type PushConfig added in v0.1.33

type PushConfig struct {
	Kind  content.ContentKind
	Name  string
	Dir   string
	Force bool
}

Jump to

Keyboard shortcuts

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