cli

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute runs the root command

func NewAddCommand

func NewAddCommand(fs filesystem.FileSystem) *cobra.Command

NewAddCommand creates a new add command

func NewChangelogCommand

func NewChangelogCommand(fs filesystem.FileSystem) *cobra.Command

NewChangelogCommand creates a new changelog command

func NewEachCommand

func NewEachCommand(fs filesystem.FileSystem, gitClient git.GitClient) *cobra.Command

NewEachCommand creates a new each command

func NewPublishCommand

func NewPublishCommand(fs filesystem.FileSystem, gitClient git.GitClient, ghClient github.GitHubClient) *cobra.Command

NewPublishCommand creates a new publish command

func NewRootCommand

func NewRootCommand(fs filesystem.FileSystem, gitClient git.GitClient, ghClient github.GitHubClient) *cobra.Command

NewRootCommand creates the root command

func NewSnapshotCommand

func NewSnapshotCommand(fs filesystem.FileSystem, gitClient git.GitClient, ghClient github.GitHubClient) *cobra.Command

NewSnapshotCommand creates a new snapshot command

func NewTreeCommand

func NewTreeCommand(fs filesystem.FileSystem, gitClient git.GitClient) *cobra.Command

NewTreeCommand creates a new tree command

func NewVersionCommand

func NewVersionCommand(fs filesystem.FileSystem, gitClient git.GitClient, ghClient github.GitHubClient) *cobra.Command

NewVersionCommand creates a new version command

Types

type AddCommand

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

AddCommand handles the add command

func (*AddCommand) Run

func (c *AddCommand) Run(cmd *cobra.Command, args []string) error

Run executes the add command

type ChangelogCommand

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

ChangelogCommand handles the changelog command

func (*ChangelogCommand) Run

func (c *ChangelogCommand) Run(cmd *cobra.Command, args []string) error

Run executes the changelog command

type ChangesetGroup

type ChangesetGroup struct {
	Commit      string                  `json:"commit"`
	CommitShort string                  `json:"commitShort"`
	Message     string                  `json:"message"`
	Projects    []ProjectChangesetsInfo `json:"projects"`
	// contains filtered or unexported fields
}

ChangesetGroup represents a group of related changesets (from same commit)

type ChangesetInfo

type ChangesetInfo struct {
	ID      string `json:"id"`
	File    string `json:"file"`
	Bump    string `json:"bump"`
	Message string `json:"message"`
}

ChangesetInfo represents a single changeset's info

type EachCommand

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

EachCommand handles the each command

func (*EachCommand) Run

func (c *EachCommand) Run(cmd *cobra.Command, args []string) error

Run executes the each command

type ProjectChangesetsInfo

type ProjectChangesetsInfo struct {
	Name       string          `json:"name"`
	Changesets []ChangesetInfo `json:"changesets"`
}

ProjectChangesetsInfo represents changesets for a project in a group

type PublishCommand

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

PublishCommand handles the publish command

func (*PublishCommand) Run

func (c *PublishCommand) Run(cmd *cobra.Command, args []string) error

Run executes the publish command

type SnapshotCommand

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

SnapshotCommand handles the snapshot command

func (*SnapshotCommand) Run

func (c *SnapshotCommand) Run(cmd *cobra.Command, args []string) error

Run executes the snapshot command

type TreeCommand

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

TreeCommand handles the tree command

func (*TreeCommand) Run

func (c *TreeCommand) Run(cmd *cobra.Command, args []string) error

Run executes the tree command

type TreeOutput

type TreeOutput struct {
	Groups []ChangesetGroup `json:"groups"`
}

TreeOutput represents the complete tree output

type VersionCommand

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

VersionCommand handles the version command

func (*VersionCommand) Run

func (c *VersionCommand) Run(cmd *cobra.Command, args []string) error

Run executes the version command

Jump to

Keyboard shortcuts

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