cmd

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: Apache-2.0 Imports: 16 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
	Logger             logger.Interface
}

InternalRunner has the set of use-cases.

type NewInternalRunnerFunc

type NewInternalRunnerFunc func(logger.Interface, client.Interface) *InternalRunner

type Runner

type Runner struct {
	Env               env.Interface
	NewLogger         logger.NewFunc
	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