content

package
v0.1.112 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: Apache-2.0 Imports: 27 Imported by: 1 module, 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

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"`
	Vendors    []api.Vendor    `json:"vendors"    yaml:"vendors"`
	BlogPosts  []api.BlogPost  `json:"blog-posts" yaml:"blog-posts"`
	ShellGyms  []api.ShellGym  `json:"shell-gyms" yaml:"shell-gyms"`
}

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
	Files []string
}

Jump to

Keyboard shortcuts

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