Documentation
¶
Overview ¶
Package jenkinscli is the module root. It exists only to embed packaged assets — the companion `jenkins` Skill — into the CLI binary, so that `jenkins-cli skill install` can deploy a version-matched copy regardless of how the binary itself was installed (npm, go install, prebuilt, source).
Index ¶
Constants ¶
View Source
const SkillRoot = "skills/jenkins"
SkillRoot is the path within SkillFS at which the Skill is rooted.
Variables ¶
View Source
var SkillFS embed.FS
SkillFS holds the companion Skill, rooted at "skills/jenkins".
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
gen-docs
command
Command gen-docs renders the jenkins-cli command tree into reference documentation under docs/cli/:
|
Command gen-docs renders the jenkins-cli command tree into reference documentation under docs/cli/: |
|
jenkins-cli
command
Command jenkins-cli lets Coding Agents inspect Jenkins for a developer's debugging workflow: discover jobs and builds, read status, console logs, pipeline stages, test failures and SCM changes, and trigger or stop builds — all with agent-friendly JSON output and structured errors.
|
Command jenkins-cli lets Coding Agents inspect Jenkins for a developer's debugging workflow: discover jobs and builds, read status, console logs, pipeline stages, test failures and SCM changes, and trigger or stop builds — all with agent-friendly JSON output and structured errors. |
|
internal
|
|
|
app
Package app wires the cobra command tree and runs the CLI.
|
Package app wires the cobra command tree and runs the CLI. |
|
auth
Package auth models Jenkins credentials, resolves them from configuration or secure storage, and applies them to outgoing HTTP requests.
|
Package auth models Jenkins credentials, resolves them from configuration or secure storage, and applies them to outgoing HTTP requests. |
|
cliflags
Package cliflags rewrites argv before cobra parses it, absorbing two common slips an LLM makes when generating a command line:
|
Package cliflags rewrites argv before cobra parses it, absorbing two common slips an LLM makes when generating a command line: |
|
config
Package config resolves CLI configuration from layered sources: CLI flags, environment variables, a .env file, a YAML config file and built-in defaults, in that precedence order (highest first).
|
Package config resolves CLI configuration from layered sources: CLI flags, environment variables, a .env file, a YAML config file and built-in defaults, in that precedence order (highest first). |
|
output
Package output renders command results for either agents or humans.
|
Package output renders command results for either agents or humans. |
|
update
Package update reports whether a newer jenkins-cli release is available.
|
Package update reports whether a newer jenkins-cli release is available. |
|
pkg
|
|
|
apiclient
Package apiclient is the Jenkins API surface used by the CLI.
|
Package apiclient is the Jenkins API surface used by the CLI. |
|
constants
Package constants holds project-wide constants and build-time metadata.
|
Package constants holds project-wide constants and build-time metadata. |
|
errors
Package errors defines the structured error model used across the CLI.
|
Package errors defines the structured error model used across the CLI. |
|
timeutil
Package timeutil renders the epoch-millisecond timestamps Jenkins returns into the forms a coding agent can use directly: an absolute RFC3339 instant and a compact relative phrase ("3h ago").
|
Package timeutil renders the epoch-millisecond timestamps Jenkins returns into the forms a coding agent can use directly: an absolute RFC3339 instant and a compact relative phrase ("3h ago"). |
|
transport
Package transport provides a flavor-agnostic HTTP layer: a thin client that applies request decorators (auth, user-agent) and retries transient failures.
|
Package transport provides a flavor-agnostic HTTP layer: a thin client that applies request decorators (auth, user-agent) and retries transient failures. |
|
test
|
|
|
mockserver
command
Command mockserver is a tiny stand-in for a Jenkins remote API, used by scripts/e2e.sh to exercise jenkins-cli end-to-end without a real Jenkins or credentials.
|
Command mockserver is a tiny stand-in for a Jenkins remote API, used by scripts/e2e.sh to exercise jenkins-cli end-to-end without a real Jenkins or credentials. |
Click to show internal directories.
Click to hide internal directories.
