Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
2accd75
feat add profiles command
PatrickMenoti Oct 28, 2025
c1baee5
refactor: update message packages
PatrickMenoti Oct 28, 2025
ebed602
tests: update init unit tests
PatrickMenoti Oct 28, 2025
2617f97
tests: update whoami tests
PatrickMenoti Oct 28, 2025
a40f84b
refactor: fix identation
PatrickMenoti Oct 28, 2025
37b66fc
chore: add commands to v3 tree
PatrickMenoti Oct 29, 2025
743831d
chore: switch to defult on deletion of active profile
PatrickMenoti Oct 29, 2025
3085794
Merge pull request #1307 from aziontech/profiles-command
PatrickMenoti Oct 30, 2025
dca505d
chore: improve retry logic
PatrickMenoti Oct 31, 2025
a7f1d13
chore: update go version
PatrickMenoti Oct 31, 2025
a290149
Merge pull request #1310 from aziontech/improv-deploy
PatrickMenoti Nov 3, 2025
7dd565f
refactor: update deps
PatrickMenoti Nov 3, 2025
4664615
Merge pull request #1311 from aziontech/update-deps
PatrickMenoti Nov 3, 2025
aef6d38
chore: add option for sensitive info
PatrickMenoti Nov 4, 2025
593622e
chore: update APIURL var
PatrickMenoti Nov 4, 2025
5fefb35
chore: update generate docs code
PatrickMenoti Nov 4, 2025
37515fc
Merge pull request #1314 from aziontech/update-generate-docs
PatrickMenoti Nov 4, 2025
c00c219
Merge pull request #1313 from aziontech/sensitive-attribute
PatrickMenoti Nov 4, 2025
4fdee66
chore: keep azion.json order when synching
PatrickMenoti Nov 5, 2025
8950aab
refactor: small code refactor
PatrickMenoti Nov 5, 2025
1252f72
tests: update unit tests
PatrickMenoti Nov 5, 2025
6a33539
chore: order by id in cache-settings
PatrickMenoti Nov 5, 2025
1a7c271
Merge pull request #1315 from aziontech/keep-order-azion
PatrickMenoti Nov 5, 2025
c3f8538
chore: update SDK to use new mtls schema
PatrickMenoti Nov 6, 2025
f9ea872
Merge pull request #1316 from aziontech/mtls
PatrickMenoti Nov 7, 2025
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
2 changes: 1 addition & 1 deletion .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
container:
image: golang:1.25.0
image: golang:1.25.3
outputs:
binver: ${{ steps.binversion.outputs.BIN_VERSION }}
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
container:
image: golang:1.25.0
image: golang:1.25.3
env:
CGO_ENABLED: 0 # Statically linked

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-e2e') }}
container:
image: golang:1.25.0
image: golang:1.25.3
env:
CGO_ENABLED: 0 # Statically linked

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/generate_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
container:
image: golang:1.25.0
image: golang:1.25.3
env:
CGO_ENABLED: 0 # Statically linked

Expand All @@ -22,15 +22,15 @@ jobs:
run: git config --global url."https://${{ secrets.GLOBAL_TOKEN }}:x-oauth-basic@github.com/aziontech".insteadOf "https://github.com/aziontech"

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Generate docs
run: go run ./cmd/gen_docs/main.go --file-type "md" --doc-path "/tmp/docs"

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
repository: ${{github.repository}}.wiki
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/package-audit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: Package Auditor (GoVulnCheck)
runs-on: ubuntu-latest
container:
image: golang:1.25.0
image: golang:1.25.3
steps:
- name: Checkout Repository
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_and_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-unit-tests') }}
runs-on: ubuntu-latest
container:
image: golang:1.25.0
image: golang:1.25.3

steps:
- name: Setting GIT
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.25.0
FROM golang:1.25.3

WORKDIR /go/src/app

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SHELL := env PATH=$(PATH) /bin/bash
NAME := azion

ifeq (, $(GO))
$(error "No go binary found in your system, please install go 1.25.0 before continuing")
$(error "No go binary found in your system, please install go 1.25.3 before continuing")
endif

GOPATH ?= $(shell $(GO) env GOPATH)
Expand Down
6 changes: 5 additions & 1 deletion cmd/azion/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"net/http"
"path"
"time"

cmd "github.com/aziontech/azion-cli/pkg/cmd/root"
Expand All @@ -18,13 +19,16 @@ func main() {
Timeout: 50 * time.Second,
}

tok, _ := token.ReadSettings()
profiles, settingsPath, _ := token.ReadProfiles()
activeProfile := path.Join(settingsPath, profiles.Name)
tok, _ := token.ReadSettings(profiles.Name)
viper.SetEnvPrefix("AZIONCLI")
viper.AutomaticEnv()
viper.SetDefault("token", tok.Token)
viper.SetDefault("api_url", constants.ApiURL)
viper.SetDefault("api_v4_url", constants.ApiV4URL)
viper.SetDefault("storage_url", constants.StorageApiURL)
viper.SetDefault("active_profile", activeProfile)

factory := &cmdutil.Factory{
HttpClient: httpClient,
Expand Down
4 changes: 4 additions & 0 deletions cmd/gen_docs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
cmd "github.com/aziontech/azion-cli/pkg/cmd/root"
"github.com/aziontech/azion-cli/pkg/cmdutil"
"github.com/aziontech/azion-cli/pkg/iostreams"
"github.com/aziontech/azion-cli/pkg/logger"
"github.com/spf13/cobra"
"github.com/spf13/cobra/doc"
"github.com/spf13/pflag"
Expand Down Expand Up @@ -48,6 +49,9 @@ func run(args []string) error {
return fmt.Errorf("error: --doc-path not set")
}

// Initialize logger to prevent nil pointer dereference
logger.LogLevel(logger.Logger{})

fact := cmd.NewFactoryRoot(&cmdutil.Factory{
IOStreams: iostreams.System(),
Config: emptyConfig{},
Expand Down
32 changes: 16 additions & 16 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
module github.com/aziontech/azion-cli

go 1.25.0
go 1.25.3

require (
github.com/AlecAivazis/survey/v2 v2.3.7
github.com/MakeNowJust/heredoc v1.0.0
github.com/aws/aws-sdk-go-v2 v1.39.3
github.com/aws/aws-sdk-go-v2/config v1.31.14
github.com/aws/aws-sdk-go-v2/credentials v1.18.18
github.com/aws/aws-sdk-go-v2/service/s3 v1.88.6
github.com/aws/aws-sdk-go-v2 v1.39.5
github.com/aws/aws-sdk-go-v2/config v1.31.16
github.com/aws/aws-sdk-go-v2/credentials v1.18.20
github.com/aws/aws-sdk-go-v2/service/s3 v1.89.1
github.com/aziontech/azionapi-go-sdk v0.143.0
github.com/aziontech/go-thoth v0.0.0-20240228144710-d061a88cc39f
github.com/aziontech/tablecli v0.0.0-20241007135202-07712c07aa9e
Expand Down Expand Up @@ -37,7 +37,7 @@ require (
gopkg.in/yaml.v3 v3.0.1
)

require github.com/aziontech/azionapi-v4-go-sdk-dev v0.80.0
require github.com/aziontech/azionapi-v4-go-sdk-dev v0.84.0

require (
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
Expand All @@ -49,18 +49,18 @@ require (
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/ProtonMail/go-crypto v1.1.6 // indirect
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.2 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.10 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.10 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.10 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.12 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.12 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.12 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.4 // indirect
github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.10 // indirect
github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.12 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.2 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.1 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.10 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.10 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.29.7 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.2 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.38.8 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.3 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.12 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.12 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.30.0 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.4 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.39.0 // indirect
github.com/aws/smithy-go v1.23.1 // indirect
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 // indirect
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e // indirect
Expand Down
Loading
Loading