Skip to content
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ COPY go.sum go.sum
RUN go mod download

COPY scripts/ scripts/
COPY cmd/ cmd/
COPY internal/ internal/
COPY v2/cmd/ cmd/
COPY v2/internal/ internal/
COPY .git/ .git/

RUN ./scripts/build.sh
Expand Down
2 changes: 1 addition & 1 deletion docs/CONTINUOUS_CODE_DEPLOYMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This enables us to keep Scaleway toolings up to date with the latest version of

## Generated files

Generated files and folders are located in [scaleway-cli/internal/namespaces](../internal/namespaces).
Generated files and folders are located in [scaleway-cli/internal/namespaces](../v2/internal/namespaces).
They always start with the following line:

```c
Expand Down
55 changes: 0 additions & 55 deletions internal/namespaces/get_commands.go

This file was deleted.

4 changes: 2 additions & 2 deletions cmd/scw-doc-gen/main.go → v2/cmd/scw-doc-gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"os"

"github.com/scaleway/scaleway-cli/internal/docgen"
"github.com/scaleway/scaleway-cli/internal/namespaces"
"github.com/scaleway/scaleway-cli/v2/internal/docgen"
"github.com/scaleway/scaleway-cli/v2/internal/namespaces"
)

// This command is used to generate markdown documentation for each commands (custom or generated) of the CLI
Expand Down
8 changes: 4 additions & 4 deletions cmd/scw-qa/main.go → v2/cmd/scw-qa/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"strings"

"github.com/fatih/color"
"github.com/scaleway/scaleway-cli/internal/namespaces"
"github.com/scaleway/scaleway-cli/internal/qa"
"github.com/scaleway/scaleway-cli/internal/tabwriter"
"github.com/scaleway/scaleway-cli/internal/terminal"
"github.com/scaleway/scaleway-cli/v2/internal/namespaces"
"github.com/scaleway/scaleway-cli/v2/internal/qa"
"github.com/scaleway/scaleway-cli/v2/internal/tabwriter"
"github.com/scaleway/scaleway-cli/v2/internal/terminal"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions cmd/scw/main.go → v2/cmd/scw/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

"github.com/hashicorp/go-version"
"github.com/mattn/go-colorable"
"github.com/scaleway/scaleway-cli/internal/core"
"github.com/scaleway/scaleway-cli/internal/namespaces"
"github.com/scaleway/scaleway-cli/internal/sentry"
"github.com/scaleway/scaleway-cli/v2/internal/core"
"github.com/scaleway/scaleway-cli/v2/internal/namespaces"
"github.com/scaleway/scaleway-cli/v2/internal/sentry"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions cmd/scw/main_test.go → v2/cmd/scw/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"strings"
"testing"

"github.com/scaleway/scaleway-cli/internal/core"
"github.com/scaleway/scaleway-cli/internal/namespaces"
"github.com/scaleway/scaleway-cli/v2/internal/core"
"github.com/scaleway/scaleway-cli/v2/internal/namespaces"
)

func Test_MainUsage(t *testing.T) {
Expand Down
Loading