cmd

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const CACHE_FILE = ".dep-doctor.yaml"
View Source
const FETCH_REPOS_PER_ONCE = 20

referenced as the number of goroutine parallels should be optimized?

View Source
const MAX_YEAR_TO_BE_BLANK = 5

Variables

View Source
var (
	Revision = "3"
	Version  = "1"
)

Functions

func Diagnose added in v0.2.0

func Execute

func Execute() int

func Prepare added in v1.0.0

func Prepare() error

func Report

func Report(diagnoses map[string]Diagnosis, strict_mode bool) error

func SaveCache added in v1.0.0

func SaveCache(diagnoses map[string]Diagnosis, cacheStore CacheStore, packageManager string) error

Types

type CachePackageManager added in v1.0.0

type CachePackageManager struct {
	Name         string            `yaml:"name"`
	Repositories []CacheRepository `yaml:"repositories"`
}

type CacheRepository added in v1.0.0

type CacheRepository struct {
	Name      string `yaml:"name"`
	SourceURL string `yaml:"source_url"`
}

type CacheStore added in v1.0.0

type CacheStore struct {
	PackageManagers []CachePackageManager `yaml:"package_managers"`
}

func BuildCacheStore added in v1.0.0

func BuildCacheStore() CacheStore

func (*CacheStore) RebuildCacheStore added in v1.0.0

func (r *CacheStore) RebuildCacheStore(diagnoses map[string]Diagnosis, packageManager string) CacheStore

func (*CacheStore) URLbyPackageManager added in v1.0.0

func (r *CacheStore) URLbyPackageManager(packageManager string) map[string]string

type DiagnoseOption added in v1.2.0

type DiagnoseOption struct {
	Out    io.Writer
	ErrOut io.Writer
	// contains filtered or unexported fields
}

func (*DiagnoseOption) Ignores added in v1.2.0

func (o *DiagnoseOption) Ignores() []string

type Diagnosis

type Diagnosis struct {
	Name      string
	URL       string
	Archived  bool
	Ignored   bool
	Diagnosed bool
	Active    bool
	Error     error
}

func (*Diagnosis) ErrorMessage added in v1.0.0

func (d *Diagnosis) ErrorMessage() string

type Doctor

type Doctor interface {
	Parse(r parser_io.ReadSeekerAt) (types.Libraries, error)
	SourceCodeURL(lib types.Library) (string, error)
}

type Doctors added in v1.0.0

type Doctors map[string]Doctor

func (Doctors) PackageManagers added in v1.0.0

func (d Doctors) PackageManagers() []string

func (Doctors) UnknownErrorMessage added in v1.0.0

func (d Doctors) UnknownErrorMessage(packageManager string) string

type Libraries added in v1.2.0

type Libraries []types.Library

func NewLibraries added in v1.2.0

func NewLibraries(libs []types.Library) Libraries

func (Libraries) Uniq added in v1.2.0

func (libs Libraries) Uniq() Libraries

type Reporter added in v1.0.0

type Reporter interface {
	Report() error
}

type RepositoryParams added in v1.0.0

type RepositoryParams []github.FetchRepositoryParam

func FetchRepositoryParams added in v0.2.0

func FetchRepositoryParams(libs []types.Library, d Doctor, cache map[string]string, disableCache bool) RepositoryParams

func (RepositoryParams) SearchableParams added in v1.0.0

func (params RepositoryParams) SearchableParams() []github.FetchRepositoryParam

func (RepositoryParams) SlicedParams added in v1.2.0

func (params RepositoryParams) SlicedParams() [][]github.FetchRepositoryParam

type StdoutReporter added in v1.0.0

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

func NewStdoutReporter added in v1.0.0

func NewStdoutReporter(diagnosis map[string]Diagnosis, strict_mode bool) *StdoutReporter

func (*StdoutReporter) Report added in v1.0.0

func (r *StdoutReporter) Report() error

Directories

Path Synopsis
dart
pub
erlang_elixir
hex

Jump to

Keyboard shortcuts

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