cmd

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug bool

Functions

func DynamicScopeSuggestion added in v0.5.0

func DynamicScopeSuggestion(commitType string) string

DynamicScopeSuggestion calculates the best possible scope for the current commit type based on history.

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type ByCount added in v0.5.0

type ByCount []ScopeCount

func (ByCount) Len added in v0.5.0

func (a ByCount) Len() int

func (ByCount) Less added in v0.5.0

func (a ByCount) Less(i, j int) bool

func (ByCount) Swap added in v0.5.0

func (a ByCount) Swap(i, j int)

type RemoteConfigData added in v0.5.1

type RemoteConfigData struct {
	RemoteConfig *git.Remote
}

func (*RemoteConfigData) GetURL added in v0.5.1

func (r *RemoteConfigData) GetURL() (url string)

func (*RemoteConfigData) OrgName added in v0.5.1

func (r *RemoteConfigData) OrgName() (org string)

OrgName parses the repo name out of git@ssh.dev.azure.com:v3/{org}/{project}/{repo}

func (*RemoteConfigData) ProjectName added in v0.5.1

func (r *RemoteConfigData) ProjectName() (project string)

ProjectName parses the project name out of ssh://git@ssh.dev.azure.com:v3/{org}/{project}/{repo}

func (*RemoteConfigData) RepoName added in v0.5.1

func (r *RemoteConfigData) RepoName() (repo string)

RepoName parses the repo name out of git@ssh.dev.azure.com:v3/{org}/{project}/{repo}

type ScopeCount added in v0.5.0

type ScopeCount struct {
	Scope string
	Count int
}

func GetScopesInLastMonths added in v0.5.0

func GetScopesInLastMonths(months, maxResults int, commitType string) ([]ScopeCount, error)

Jump to

Keyboard shortcuts

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