Skip to content

Commit 839be9f

Browse files
yfodiljremy42
authored andcommitted
docs: update developers website url (scaleway#3733)
feat(llm-inference): add support llm-inference cli (scaleway#3731) chore: enable update for github actions in dependabot (scaleway#3734) Co-authored-by: Mia-Cross <[email protected]> feat(llm_inference): change more cli fields to positional (scaleway#3732) Co-authored-by: Jules Casteran <[email protected]> chore(deps): bump goreleaser/goreleaser-action from 4 to 5 (scaleway#3735) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mia-Cross <[email protected]> chore(deps): bump gaurav-nelson/github-action-markdown-link-check from 1.0.13 to 1.0.15 (scaleway#3736) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(deps): bump github/codeql-action from 2 to 3 (scaleway#3737) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mia-Cross <[email protected]> chore(deps): bump actions/setup-go from 3 to 5 (scaleway#3738) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mia-Cross <[email protected]> chore(deps): bump golangci/golangci-lint-action from 3 to 4 (scaleway#3739) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mia-Cross <[email protected]> chore: add support for docker in dependabot (scaleway#3741) chore(deps): bump alpine from 3.16 to 3.19 (scaleway#3742) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> chore(deps): bump pnpm/action-setup from 2 to 3 (scaleway#3743) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mia-Cross <[email protected]> chore(deps): bump actions/checkout from 3 to 4 (scaleway#3744) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mia-Cross <[email protected]> chore(deps): bump codecov/codecov-action from 2 to 4 (scaleway#3745) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mia-Cross <[email protected]> feat(core):add test end to end
1 parent f6dbad5 commit 839be9f

File tree

60 files changed

+2179
-84
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+2179
-84
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,14 @@ updates:
1111
interval: daily
1212
ignore:
1313
# Ignore sentry-go updates, cannot be updated to be used with our sentry
14-
- dependency-name: "sentry-go"
14+
- dependency-name: "sentry-go"
15+
16+
- package-ecosystem: "github-actions"
17+
directory: "/"
18+
schedule:
19+
interval: monthly
20+
21+
- package-ecosystem: docker
22+
directory: "/"
23+
schedule:
24+
interval: monthly

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
steps:
3232
- name: Checkout repository
33-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
3434
with:
3535
# We must fetch at least the immediate parents so that if this is
3636
# a pull request then we can checkout the head.
@@ -43,7 +43,7 @@ jobs:
4343

4444
# Initializes the CodeQL tools for scanning.
4545
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v2
46+
uses: github/codeql-action/init@v3
4747
with:
4848
languages: ${{ matrix.language }}
4949
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -54,7 +54,7 @@ jobs:
5454
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5555
# If this step fails, then you should remove it and run the build manually (see below)
5656
- name: Autobuild
57-
uses: github/codeql-action/autobuild@v2
57+
uses: github/codeql-action/autobuild@v3
5858

5959
# ℹ️ Command-line programs to run using the OS shell.
6060
# 📚 https://git.io/JvXDl
@@ -68,4 +68,4 @@ jobs:
6868
# make release
6969

7070
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v2
71+
uses: github/codeql-action/analyze@v3

.github/workflows/coverage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
with:
1414
fetch-depth: 2
15-
- uses: actions/setup-go@v3
15+
- uses: actions/setup-go@v5
1616
with:
1717
go-version: '1.21'
1818
- name: Run coverage
1919
run: go test -coverprofile=coverage.out -covermode=count ./...
2020
- name: Upload coverage to Codecov
21-
uses: codecov/codecov-action@v2
21+
uses: codecov/codecov-action@v4

.github/workflows/docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
name: Ensure docs are generated
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
1111
- name: Generate code
1212
run: go run ./cmd/scw-doc-gen
1313
env:
@@ -18,8 +18,8 @@ jobs:
1818
markdown-link-check:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v3
22-
- uses: gaurav-nelson/[email protected].13
21+
- uses: actions/checkout@v4
22+
- uses: gaurav-nelson/[email protected].15
2323
with:
2424
use-quiet-mode: 'yes'
2525
use-verbose-mode: 'yes'

.github/workflows/golangci-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ jobs:
77
name: lint
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
1111
- name: golangci-lint
12-
uses: golangci/golangci-lint-action@v3
12+
uses: golangci/golangci-lint-action@v4
1313
with:
1414
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
1515
version: latest

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
1616

1717
- name: Login to DockerHub Registry
1818
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
1919

2020
- name: Set up Go
21-
uses: actions/setup-go@v3
21+
uses: actions/setup-go@v5
2222
with:
2323
go-version: '1.21'
2424

2525
- name: Run GoReleaser
26-
uses: goreleaser/goreleaser-action@v4
26+
uses: goreleaser/goreleaser-action@v5
2727
with:
2828
version: latest
2929
args: release --rm-dist
@@ -36,15 +36,15 @@ jobs:
3636
- goreleaser
3737
steps:
3838
- name: Install Go
39-
uses: actions/setup-go@v3
39+
uses: actions/setup-go@v5
4040
with:
4141
go-version: '1.21'
4242
- name: Install pnpm
43-
uses: pnpm/action-setup@v2
43+
uses: pnpm/action-setup@v3
4444
with:
4545
version: 6.0.2
4646
- name: Checkout
47-
uses: actions/checkout@v3
47+
uses: actions/checkout@v4
4848
with:
4949
fetch-depth: 1
5050
- name: Build

.github/workflows/unit-tests.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ jobs:
1313
runs-on: ${{ matrix.platform }}
1414
steps:
1515
- name: Install Go
16-
uses: actions/setup-go@v3
16+
uses: actions/setup-go@v5
1717
with:
1818
go-version: ${{ matrix.go-version }}
1919
- name: Set git to use LF to avoid problem with goldens on windows
2020
run: |
2121
git config --global core.autocrlf false
2222
git config --global core.eol lf
2323
- name: Checkout
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2525
with:
2626
fetch-depth: 1
2727
- name: Run unit tests
@@ -37,11 +37,11 @@ jobs:
3737
runs-on: ${{ matrix.platform }}
3838
steps:
3939
- name: Install Go
40-
uses: actions/setup-go@v3
40+
uses: actions/setup-go@v5
4141
with:
4242
go-version: ${{ matrix.go-version }}
4343
- name: Checkout
44-
uses: actions/checkout@v3
44+
uses: actions/checkout@v4
4545
with:
4646
fetch-depth: 1
4747
- name: Build binaries
@@ -55,7 +55,7 @@ jobs:
5555
runs-on: ubuntu-latest
5656
steps:
5757
- name: Checkout
58-
uses: actions/checkout@v3
58+
uses: actions/checkout@v4
5959
with:
6060
fetch-depth: 1
6161
- name: Build image in Docker

.github/workflows/wasm.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ jobs:
1313
runs-on: ${{ matrix.platform }}
1414
steps:
1515
- name: Install Go
16-
uses: actions/setup-go@v3
16+
uses: actions/setup-go@v5
1717
with:
1818
go-version: ${{ matrix.go-version }}
1919
- name: Install pnpm
20-
uses: pnpm/action-setup@v2
20+
uses: pnpm/action-setup@v3
2121
with:
2222
version: 6.0.2
2323
- name: Checkout
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2525
with:
2626
fetch-depth: 1
2727
- name: Build

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ COPY .git/ .git/
2121

2222
RUN ./scripts/build.sh
2323

24-
FROM alpine:3.16
24+
FROM alpine:3.19
2525
WORKDIR /
2626
RUN apk update && apk add --no-cache bash ca-certificates openssh-client && update-ca-certificates
2727
COPY --from=builder /go/src/github.com/scaleway/scaleway-cli/scw .

README.md

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -103,40 +103,40 @@ To enable beta features, you can set `SCW_ENABLE_BETA=1` in your environment.
103103

104104
# Reference documentation
105105

106-
| Namespace | Description | Documentation |
107-
|----------------|-----------------------------------------|-----------------------------------------------------------------------------------------------------------------|
108-
| `account` | User related data | [CLI](./docs/commands/account.md) / [API](https://developers.scaleway.com/en/products/account/api/v2/) |
109-
| `applesilicon` | Apple silicon API | [CLI](./docs/commands/apple-silicon.md) / [API](https://developers.scaleway.com/en/products/apple-silicon/api/) |
110-
| `autocomplete` | Autocomplete related commands | [CLI](./docs/commands/autocomplete.md) |
111-
| `baremetal` | Baremetal API | [CLI](./docs/commands/baremetal.md) / [API](https://developers.scaleway.com/en/products/baremetal/api/) |
112-
| `billing` | Billing API | [CLI](./docs/commands/billing.md) / [API](https://developers.scaleway.com/en/products/billing/api/) |
113-
| `cockpit` | Cockpit API | [CLI](./docs/commands/cockpit.md) / [API](https://developers.scaleway.com/en/products/cockpit/api/) |
114-
| `config` | Config file management | [CLI](./docs/commands/config.md) |
115-
| `container` | Serverless Container API | [CLI](./docs/commands/container.md) / [API](https://developers.scaleway.com/en/products/containers/api/) |
116-
| `documentdb` | DocumentDB API | [CLI](./docs/commands/document-db.md) / [API](https://www.scaleway.com/en/developers/api/document_db/) |
117-
| `dns` | DNS API | [CLI](./docs/commands/dns.md) / [API](https://developers.scaleway.com/en/products/domain/dns/api/) |
118-
| `feedback` | Send feedback to the Scaleway CLI Team! | [CLI](./docs/commands/feedback.md) |
119-
| `flexibleip` | Flexible IP API | [CLI](./docs/commands/fip.md) / [API](https://developers.scaleway.com/en/products/flexible-ip/api/) |
120-
| `function` | Serverless Function API | [CLI](./docs/commands/function.md) / [API](https://developers.scaleway.com/en/products/functions/api/) |
121-
| `iam` | IAM API | [CLI](./docs/commands/iam.md) / [API](https://developers.scaleway.com/en/products/iam/api/v1alpha1/) |
122-
| `info` | Get info about current settings | [CLI](./docs/commands/info.md) |
123-
| `init` | Initialize the config | [CLI](./docs/commands/init.md) |
124-
| `instance` | Instance API | [CLI](./docs/commands/instance.md) / [API](https://developers.scaleway.com/en/products/instance/api/) |
125-
| `iot` | IoT API | [CLI](./docs/commands/iot.md) / [API](https://developers.scaleway.com/en/products/iot/api/) |
126-
| `ipam` | IPAM API | [CLI](./docs/commands/ipam.md) / [API](https://www.scaleway.com/en/developers/api/ipam/) |
127-
| `k8s` | Kapsule API | [CLI](./docs/commands/k8s.md) / [API](https://developers.scaleway.com/en/products/k8s/api/) |
128-
| `lb` | Load Balancer API | [CLI](./docs/commands/lb.md) / [API](https://developers.scaleway.com/en/products/lb/zoned_api/) |
129-
| `marketplace` | Marketplace API | [CLI](./docs/commands/marketplace.md) |
130-
| `mnq` | Messaging and Queueing API | [CLI](./docs/commands/mnq.md) / [API](https://www.scaleway.com/en/docs/serverless/messaging/concepts/) |
131-
| `object` | Object-storage utils | [CLI](./docs/commands/object.md) / [API](https://www.scaleway.com/en/docs/object-storage-feature/) |
132-
| `rdb` | Database RDB API | [CLI](./docs/commands/rdb.md) / [API](https://developers.scaleway.com/en/products/rdb/api/) |
133-
| `redis` | Redis API | [CLI](./docs/commands/redis.md) / [API](https://developers.scaleway.com/en/products/redis/api/v1/) |
134-
| `registry` | Container registry API | [CLI](./docs/commands/registry.md) / [API](https://developers.scaleway.com/en/products/registry/api/) |
135-
| `secret` | Secret manager API | [CLI](./docs/commands/secret.md) |
136-
| `shell` | Start Shell mode | [CLI](./docs/commands/shell.md) |
137-
| `tem` | Transactional Email API | [CLI](./docs/commands/tem.md) / [API](https://developers.scaleway.com/en/products/transactional_email/api/) |
138-
| `vpc-gw` | VPC Gateway API | [CLI](./docs/commands/vpc-gw.md) / [API](https://developers.scaleway.com/en/products/vpc-gw/api/v1/) |
139-
| `vpc` | VPC API | [CLI](./docs/commands/vpc.md) / [API](https://developers.scaleway.com/en/products/vpc/api/) |
106+
| Namespace | Description | Documentation |
107+
|----------------|-----------------------------------------|-------------------------------------------------------------------------------------------------------------------|
108+
| `account` | User related data | [CLI](./docs/commands/account.md) / [API](https://www.scaleway.com/en/developers/api/account/project-api/) |
109+
| `applesilicon` | Apple silicon API | [CLI](./docs/commands/apple-silicon.md) / [API](https://www.scaleway.com/en/developers/api/apple-silicon/) |
110+
| `autocomplete` | Autocomplete related commands | [CLI](./docs/commands/autocomplete.md) |
111+
| `baremetal` | Baremetal API | [CLI](./docs/commands/baremetal.md) / [API](https://www.scaleway.com/en/developers/api/elastic-metal/) |
112+
| `billing` | Billing API | [CLI](./docs/commands/billing.md) / [API](https://www.scaleway.com/en/developers/api/billing/) |
113+
| `cockpit` | Cockpit API | [CLI](./docs/commands/cockpit.md) / [API](https://www.scaleway.com/en/developers/api/cockpit/) |
114+
| `config` | Config file management | [CLI](./docs/commands/config.md) |
115+
| `container` | Serverless Container API | [CLI](./docs/commands/container.md) / [API](https://www.scaleway.com/en/developers/api/serverless-containers/) |
116+
| `documentdb` | DocumentDB API | [CLI](./docs/commands/document-db.md) |
117+
| `dns` | DNS API | [CLI](./docs/commands/dns.md) / [API](https://www.scaleway.com/en/developers/api/domains-and-dns/) |
118+
| `feedback` | Send feedback to the Scaleway CLI Team! | [CLI](./docs/commands/feedback.md) |
119+
| `flexibleip` | Flexible IP API | [CLI](./docs/commands/fip.md) / [API](https://www.scaleway.com/en/developers/api/elastic-metal-flexible-ip/) |
120+
| `function` | Serverless Function API | [CLI](./docs/commands/function.md) / [API](https://www.scaleway.com/en/developers/api/serverless-functions/) |
121+
| `iam` | IAM API | [CLI](./docs/commands/iam.md) / [API](https://www.scaleway.com/en/developers/api/iam/) |
122+
| `info` | Get info about current settings | [CLI](./docs/commands/info.md) |
123+
| `init` | Initialize the config | [CLI](./docs/commands/init.md) |
124+
| `instance` | Instance API | [CLI](./docs/commands/instance.md) / [API](https://www.scaleway.com/en/developers/api/instance/) |
125+
| `iot` | IoT API | [CLI](./docs/commands/iot.md) / [API](https://www.scaleway.com/en/developers/api/iot/) |
126+
| `ipam` | IPAM API | [CLI](./docs/commands/ipam.md) / [API](https://www.scaleway.com/en/developers/api/ipam/) |
127+
| `k8s` | Kapsule API | [CLI](./docs/commands/k8s.md) / [API](https://www.scaleway.com/en/developers/api/kubernetes/) |
128+
| `lb` | Load Balancer API | [CLI](./docs/commands/lb.md) / [API](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/) |
129+
| `marketplace` | Marketplace API | [CLI](./docs/commands/marketplace.md) |
130+
| `mnq` | Messaging and Queueing API | [CLI](./docs/commands/mnq.md) / [API](https://www.scaleway.com/en/developers/api/messaging-and-queuing/sqs-api/) |
131+
| `object` | Object-storage utils | [CLI](./docs/commands/object.md) / [API](https://www.scaleway.com/en/docs/object-storage-feature/) |
132+
| `rdb` | Database RDB API | [CLI](./docs/commands/rdb.md) / [API](https://www.scaleway.com/en/developers/api/managed-database-postgre-mysql/) |
133+
| `redis` | Redis API | [CLI](./docs/commands/redis.md) / [API](https://www.scaleway.com/en/developers/api/managed-database-redis// ) |
134+
| `registry` | Container registry API | [CLI](./docs/commands/registry.md) / [API](https://www.scaleway.com/en/developers/api/registry/) |
135+
| `secret` | Secret manager API | [CLI](./docs/commands/secret.md) / [API](https://www.scaleway.com/en/developers/api/secret-manager/) |
136+
| `shell` | Start Shell mode | [CLI](./docs/commands/shell.md) |
137+
| `tem` | Transactional Email API | [CLI](./docs/commands/tem.md) / [API](https://www.scaleway.com/en/developers/api/transactional-email/) |
138+
| `vpc-gw` | VPC Gateway API | [CLI](./docs/commands/vpc-gw.md) / [API](https://www.scaleway.com/en/developers/api/public-gateway/) |
139+
| `vpc` | VPC API | [CLI](./docs/commands/vpc.md) / [API](https://www.scaleway.com/en/developers/api/vpc/) |
140140

141141
## Build it yourself
142142

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Add new ACL rules for a specific deployment.
4+
5+
USAGE:
6+
scw llm-inference acl add <deployment-id ...> [arg=value ...]
7+
8+
ARGS:
9+
deployment-id ID of the deployment to add ACL rules to
10+
[acls.{index}.ip] IP address to be allowed
11+
[acls.{index}.description] Description of the ACL rule
12+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
13+
14+
FLAGS:
15+
-h, --help help for add
16+
17+
GLOBAL FLAGS:
18+
-c, --config string The path to the config file
19+
-D, --debug Enable debug mode
20+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
21+
-p, --profile string The config profile to use
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3+
Delete an exising ACL.
4+
5+
USAGE:
6+
scw llm-inference acl delete <acl-id ...> [arg=value ...]
7+
8+
ARGS:
9+
acl-id ID of the ACL rule to delete
10+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
11+
12+
FLAGS:
13+
-h, --help help for delete
14+
15+
GLOBAL FLAGS:
16+
-c, --config string The path to the config file
17+
-D, --debug Enable debug mode
18+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
19+
-p, --profile string The config profile to use

0 commit comments

Comments
 (0)