cmd

package
v0.0.0-...-ab64b81 Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package cmd parses command line args and runs the corresponding use-case.

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Run(args []string, version string) int
}

type InternalRunner

type InternalRunner struct {
	CommitUseCase      commit.Interface
	ForkCommitUseCase  forkcommit.Interface
	PullRequestUseCase pullrequest.Interface
	ReleaseUseCase     release.Interface
}

InternalRunner has the set of use-cases.

type NewInternalRunnerFunc

type NewInternalRunnerFunc func(client.Interface) *InternalRunner

type Runner

type Runner struct {
	Env               env.Interface
	NewGitHub         client.NewFunc
	NewInternalRunner NewInternalRunnerFunc
}

Runner is the entry point for the command line application. It bootstraps the InternalRunner and runs the specified use-case.

func (*Runner) Run

func (r *Runner) Run(args []string, version string) int

Run parses the command line args and runs the corresponding use-case.

Jump to

Keyboard shortcuts

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