Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 37 additions & 45 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,58 +1,50 @@
version: "2"
linters:
disable-all: true
default: none
enable:
- errcheck
- gocyclo
- gofmt
- goimports
- gosimple
- govet
- ineffassign
- misspell
- revive
- staticcheck
- unused

output:
sort-results: true

settings:
revive:
severity: warning
rules:
- name: blank-imports
- name: context-as-argument
- name: context-keys-type
- name: dot-imports
- name: empty-block
- name: errorf
- name: error-return
- name: error-strings
- name: error-naming
- name: exported
- name: if-return
- name: increment-decrement
- name: var-naming
- name: var-declaration
- name: range
- name: receiver-naming
- name: redefines-builtin-id
- name: superfluous-else
- name: time-naming
- name: unexported-return
- name: indent-error-flow
- name: errorf
- name: empty-block
- name: superfluous-else
- name: unused-parameter
- name: unreachable-code
- name: redefines-builtin-id
issues:
exclude-use-default: false
max-issues-per-linter: 0
max-same-issues: 0

linters-settings:
revive:
ignore-generated-header: true
severity: warning
rules:
- name: blank-imports
- name: context-as-argument
- name: context-keys-type
- name: dot-imports
- name: empty-block
- name: errorf
- name: error-return
- name: error-strings
- name: error-naming
- name: exported
- name: if-return
- name: increment-decrement
- name: var-naming
- name: var-declaration
- name: range
- name: receiver-naming
- name: redefines-builtin-id
- name: superfluous-else
- name: time-naming
- name: unexported-return
- name: indent-error-flow
- name: errorf
- name: empty-block
- name: superfluous-else
- name: unused-parameter
- name: unreachable-code
- name: redefines-builtin-id
govet:
disable:
- printf
formatters:
enable:
- gofmt
- goimports
41 changes: 25 additions & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# RELEASE NOTES

## 2.0.3 (Dec 10, 2025)

### Enhancements

* Migrated to Go `1.24.11`.
* Updated various dependencies.
* Updated vulnerable dependencies.
* Added support for building the CLI for the `linux/arm64` architecture ([PR#208](https://github.com/akamai/cli/pull/208), solving [I#195](https://github.com/akamai/cli/issues/195)).

## 2.0.2 (Aug 21, 2025)

### Enhancements
Expand Down Expand Up @@ -30,19 +39,19 @@

### Fixes

* Fixed a problem with invisible output in the light background by converting all colors to a monochromatic representation ([GH#196](https://github.com/akamai/cli/issues/196)).
* Fixed a problem with invisible output in the light background by converting all colors to a monochromatic representation ([I#196](https://github.com/akamai/cli/issues/196)).
* Improved code by resolving issues reported by linter.

## 1.6.1 (Jan 2, 2025)

* Fixed security vulnerability ([GH#198](https://github.com/akamai/cli/pull/198)).
* Fixed security vulnerability ([PR#198](https://github.com/akamai/cli/pull/198)).

## 1.6.0 (Sep 5, 2024)

### Enhancements

* Added support to show the `Installed Version` of commands during `search`.
* Updated the list of packages in `packages-list.json` ([GH#192](https://github.com/akamai/cli/issues/192)).
* Updated the list of packages in `packages-list.json` ([I#192](https://github.com/akamai/cli/issues/192)).
* Removed versions of the packages from `package-list.json`.
* Changed package installation order.
* CLI will first check if new binaries are available. If the package has no binaries or no valid
Expand Down Expand Up @@ -86,8 +95,8 @@

### Fixes

* Fixed the `akamai search` command error ([GH#166](https://github.com/akamai/cli/issues/166)).
* Fixed the autocompletion for commands ([GH#165](https://github.com/akamai/cli/issues/165)).
* Fixed the `akamai search` command error ([I#166](https://github.com/akamai/cli/issues/166)).
* Fixed the autocompletion for commands ([I#165](https://github.com/akamai/cli/issues/165)).

## 1.5.2 (Jul 28, 2022)

Expand All @@ -99,7 +108,7 @@

* Fixed the `akamai update` command failures when the directory `~/.akamai-cli/src/cli-xyz` is in a git detached state.
* Show the correct version for CLI modules which version is set via ldflags.
* Fixed execution of Python submodules on Windows ([GH#159](https://github.com/akamai/cli/issues/159)).
* Fixed execution of Python submodules on Windows ([I#159](https://github.com/akamai/cli/issues/159)).
* Fine print update warnings for homebrew installations.
* Fixed failing unit tests on Windows.

Expand All @@ -113,14 +122,14 @@

### Enhancements

* Added support for a new Apple M1(Darwin ARM64) build ([GH#127](https://github.com/akamai/cli/issues/127)). NOTE: Not all CLI packages currently support Apple M1.
* Added support for a new Apple M1(Darwin ARM64) build ([I#127](https://github.com/akamai/cli/issues/127)). NOTE: Not all CLI packages currently support Apple M1.

## 1.4.2 (May 11, 2022)

### Fixes

* Handled recent Python versions ([GH#148](https://github.com/akamai/cli/issues/148)).
* Handled the `yes` command input ([GH#136](https://github.com/akamai/cli/issues/136)).
* Handled recent Python versions ([I#148](https://github.com/akamai/cli/issues/148)).
* Handled the `yes` command input ([I#136](https://github.com/akamai/cli/issues/136)).
* Purged directories on unit test error.

## 1.4.1 (Mar 24, 2022)
Expand All @@ -147,15 +156,15 @@

### Fixes

* Removed an old binary in a PowerShell terminal ([#125](https://github.com/akamai/cli/issues/125)).
* Removed an old binary in a PowerShell terminal ([I#125](https://github.com/akamai/cli/issues/125)).
* Documented CLI exit codes.
* Reviewed the exit code when trying to install an already installed command ([#83](https://github.com/akamai/cli/issues/83)).
* Reviewed the exit code when trying to install an already installed command ([I#83](https://github.com/akamai/cli/issues/83)).

### Enhancements
* Updated a list of installable CLI commands.
* Documented the `--version` flag ([#94](https://github.com/akamai/cli/issues/94)).
* Added an alias with a package prefix to all installed commands to work around possible command name collisions ([#60](https://github.com/akamai/cli/issues/60)).
* Made the `.edgerc` file location configurable ([#81](https://github.com/akamai/cli/issues/81)).
* Documented the `--version` flag ([I#94](https://github.com/akamai/cli/issues/94)).
* Added an alias with a package prefix to all installed commands to work around possible command name collisions ([I#60](https://github.com/akamai/cli/issues/60)).
* Made the `.edgerc` file location configurable ([I#81](https://github.com/akamai/cli/issues/81)).

## 1.2.1 (Apr 28, 2021)

Expand All @@ -172,8 +181,8 @@

### Fixes
* Synced logs with terminal output in most commands.
* Fixed module update issue ([#113](https://github.com/akamai/cli/issues/113)).
* Fixed panic when attempting to write on an empty writer ([#116](https://github.com/akamai/cli/issues/116)).
* Fixed module update issue ([I#113](https://github.com/akamai/cli/issues/113)).
* Fixed panic when attempting to write on an empty writer ([I#116](https://github.com/akamai/cli/issues/116)).

### Enhancements
* Added code improvements: unit test coverage improvement and project structure refactoring.
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ GOIMPORTS_VERSION = v0.24.0
GO_JUNIT_REPORT_VERSION = v2.1.0
GOCOV_VERSION = v1.1.0
GOCOVXML_VERSION = v1.1.0
GOLANGCI_LINT_VERSION = v1.63.4
GOLANGCI_LINT_VERSION = v2.6.1

BIN = $(CURDIR)/bin
GOCMD = go
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ This command installs the CLI and persists the configuration and packages in `$H

### Compile from Source

**Prerequisite:** Make sure you install Go 1.23.6 or later.
**Prerequisite:** Make sure you install go 1.24.11 or later.

To compile Akamai CLI from source:

Expand Down Expand Up @@ -336,7 +336,7 @@ The package you install needs a `cli.json` file. This is where you specify the c
- `{{.Version}}`: The command version.
- `{{.Name}}`: The command name.
- `{{.OS}}`: The current operating system, either `windows`, `mac`, or `linux`.
- `{{.Arch}}`: The current OS architecture, either `386` or `amd64`.
- `{{.Arch}}`: The current OS architecture, either `386`, `amd64` or `arm64`.
- `{{.BinSuffix}}`: The binary suffix for the current OS: `.exe` for `windows`.

### Example
Expand Down
1 change: 0 additions & 1 deletion cli/app/access_nix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !windows
// +build !windows

// Copyright 2018. Akamai Technologies, Inc
//
Expand Down
1 change: 0 additions & 1 deletion cli/app/firstrun.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build !nofirstrun
// +build !nofirstrun

// Copyright 2018. Akamai Technologies, Inc
//
Expand Down
1 change: 0 additions & 1 deletion cli/app/firstrun_noinstall.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build nofirstrun
// +build nofirstrun

// Copyright 2018. Akamai Technologies, Inc
//
Expand Down
51 changes: 26 additions & 25 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,52 +1,53 @@
module github.com/akamai/cli/v2

go 1.23.6
go 1.24.11

require (
github.com/AlecAivazis/survey/v2 v2.3.7
github.com/Masterminds/semver v1.5.0
github.com/briandowns/spinner v1.23.1
github.com/briandowns/spinner v1.23.2
github.com/fatih/color v1.18.0
github.com/go-git/go-git/v5 v5.13.1
github.com/go-git/go-git/v5 v5.16.4
github.com/go-ini/ini v1.67.0
github.com/inconshreveable/go-update v0.0.0-20160112193335-8152e7eb6ccf
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0
github.com/mattn/go-colorable v0.1.13
github.com/mattn/go-colorable v0.1.14
github.com/mattn/go-isatty v0.0.20
github.com/mitchellh/go-homedir v1.1.0
github.com/stretchr/testify v1.10.0
github.com/stretchr/testify v1.11.1
github.com/urfave/cli/v2 v2.19.3
golang.org/x/net v0.38.0
golang.org/x/sys v0.31.0
golang.org/x/text v0.23.0
golang.org/x/sys v0.39.0
golang.org/x/text v0.32.0
)

require (
dario.cat/mergo v1.0.0 // indirect
dario.cat/mergo v1.0.2 // indirect
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/ProtonMail/go-crypto v1.1.3 // indirect
github.com/ProtonMail/go-crypto v1.3.0 // indirect
github.com/cloudflare/circl v1.6.1 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.5 // indirect
github.com/cyphar/filepath-securejoin v0.3.6 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.7 // indirect
github.com/cyphar/filepath-securejoin v0.6.1 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-billy/v5 v5.6.1 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/go-git/go-billy/v5 v5.6.2 // indirect
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect
github.com/pjbgf/sha1cd v0.3.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/kevinburke/ssh_config v1.4.0 // indirect
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
github.com/pjbgf/sha1cd v0.5.0 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
github.com/skeema/knownhosts v1.3.0 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/sergi/go-diff v1.4.0 // indirect
github.com/skeema/knownhosts v1.3.2 // indirect
github.com/stretchr/objx v0.5.3 // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
golang.org/x/crypto v0.36.0 // indirect
golang.org/x/term v0.30.0 // indirect
github.com/xrash/smetrics v0.0.0-20250705151800-55b8f293f342 // indirect
golang.org/x/crypto v0.46.0 // indirect
golang.org/x/net v0.47.0 // indirect
golang.org/x/term v0.38.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading