cli

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 22 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, stdoutWriter io.Writer) *cobra.Command

NewEachCommand creates a new each command

func NewGHCloseCommand added in v0.0.5

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

func NewGHCommand added in v0.0.5

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

func NewGHLinkCommand added in v0.0.5

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

func NewGHOpenCommand added in v0.0.5

func NewGHOpenCommand(fs filesystem.FileSystem, git git.GitClient, ghClient github.GitHubClient) *cobra.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, ghClient github.GitHubClient) *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"`
	PR      *PullRequestInfo `json:"pr,omitempty"`
}

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 GHCloseCommand added in v0.0.5

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

func (*GHCloseCommand) Run added in v0.0.5

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

type GHLinkCommand added in v0.0.5

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

func (*GHLinkCommand) Run added in v0.0.5

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

type GHOpenCommand added in v0.0.5

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

func (*GHOpenCommand) Run added in v0.0.5

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

type ProjectChangesetsInfo

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

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 PullRequestInfo added in v0.0.7

type PullRequestInfo struct {
	Number int      `json:"number"`
	Title  string   `json:"title"`
	URL    string   `json:"url"`
	Author string   `json:"author"`
	Labels []string `json:"labels,omitempty"`
}

PullRequestInfo represents serialized PR metadata for a changeset.

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

func (*TreeOutput) GetGroupForProject added in v0.0.5

func (t *TreeOutput) GetGroupForProject(projectName string) *ChangesetGroup

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