cmd

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cmd contains the cobra command tree for gh-devlake.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute runs the root command.

Types

type ConnSetupResult added in v0.3.0

type ConnSetupResult struct {
	Plugin       string
	ConnectionID int
	Name         string
	Organization string
	Enterprise   string
}

ConnSetupResult holds the outcome of setting up one connection.

type ConnectionDef added in v0.3.0

type ConnectionDef struct {
	Plugin          string
	DisplayName     string
	Available       bool // false = coming soon
	Endpoint        string
	NeedsOrg        bool
	NeedsEnterprise bool
	SupportsTest    bool
	RequiredScopes  []string // PAT scopes needed for this plugin
	ScopeHint       string   // short hint for error messages
}

ConnectionDef describes a plugin connection type and how to create it.

func AvailableConnections added in v0.3.0

func AvailableConnections() []*ConnectionDef

AvailableConnections returns only available (non-coming-soon) connection defs.

func FindConnectionDef added in v0.3.0

func FindConnectionDef(plugin string) *ConnectionDef

FindConnectionDef returns the def for the given plugin slug, or nil.

func (*ConnectionDef) BuildCreateRequest added in v0.3.0

func (d *ConnectionDef) BuildCreateRequest(name string, params ConnectionParams) *devlake.ConnectionCreateRequest

BuildCreateRequest constructs the API payload for creating this connection.

func (*ConnectionDef) BuildTestRequest added in v0.3.0

func (d *ConnectionDef) BuildTestRequest(params ConnectionParams) *devlake.ConnectionTestRequest

BuildTestRequest constructs the API payload for testing this connection.

func (*ConnectionDef) MenuLabel added in v0.3.0

func (d *ConnectionDef) MenuLabel() string

MenuLabel returns the label for interactive menus.

type ConnectionParams added in v0.3.0

type ConnectionParams struct {
	Token      string
	Org        string
	Enterprise string
	Name       string // override default connection name
	Proxy      string // HTTP proxy URL
	Endpoint   string // override default endpoint (e.g. GitHub Enterprise Server)
}

ConnectionParams holds user-supplied values for a single connection.

Jump to

Keyboard shortcuts

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