sourcecmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandAdd     output.Command = "source add"
	CommandInit    output.Command = "source init"
	CommandRm      output.Command = "source rm"
	CommandList    output.Command = "source list"
	CommandDefault output.Command = "source default"
	KindSources    output.Kind    = "sources"
)

Variables

This section is empty.

Functions

func Add

func Add(req AddRequest) output.Outcome

func Default

func Default(req IDRequest) output.Outcome

func Init

func Init(req InitRequest) output.Outcome

func List

func List() output.Outcome

func Rm

func Rm(req IDRequest) output.Outcome

Types

type AddPayload

type AddPayload struct {
	Registry state.Registry
	Source   state.Source
}

type AddRequest

type AddRequest struct {
	Path        string
	Default     bool
	Init        bool
	Name        string
	Description string
}

type DefaultPayload

type DefaultPayload struct {
	Registry state.Registry
	Source   state.Source
}

type IDRequest

type IDRequest struct {
	ID string
}

type InitPayload

type InitPayload struct {
	Initialized manifest.Initialized
}

type InitRequest

type InitRequest struct {
	Path        string
	Name        string
	Description string
}

type ListPayload

type ListPayload struct {
	Registry state.Registry
}

type RmPayload

type RmPayload struct {
	Registry state.Registry
	Source   state.Source
}

Jump to

Keyboard shortcuts

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