Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 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
1 change: 1 addition & 0 deletions docs/stackit.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ stackit [flags]
* [stackit config](./stackit_config.md) - Provides functionality for CLI configuration options
* [stackit curl](./stackit_curl.md) - Executes an authenticated HTTP request to an endpoint
* [stackit dns](./stackit_dns.md) - Provides functionality for DNS
* [stackit git](./stackit_git.md) - Provides functionality for STACKIT Git
* [stackit image](./stackit_image.md) - Manage server images
* [stackit key-pair](./stackit_key-pair.md) - Provides functionality for SSH key pairs
* [stackit load-balancer](./stackit_load-balancer.md) - Provides functionality for Load Balancer
Expand Down
37 changes: 37 additions & 0 deletions docs/stackit_git.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## stackit git

Provides functionality for STACKIT Git

### Synopsis

Provides functionality for STACKIT Git.

```
stackit git [flags]
```

### Options

```
-h, --help Help for "stackit git"
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit](./stackit.md) - Manage STACKIT resources using the command line
* [stackit git create](./stackit_git_create.md) - Creates STACKIT Git instance
* [stackit git delete](./stackit_git_delete.md) - Deletes STACKIT Git instance
* [stackit git describe](./stackit_git_describe.md) - Describes STACKIT Git instance
* [stackit git list](./stackit_git_list.md) - Lists all instances of STACKIT Git.

41 changes: 41 additions & 0 deletions docs/stackit_git_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
## stackit git create

Creates STACKIT Git instance

### Synopsis

Create a STACKIT Git instance by name.

```
stackit git create [flags]
```

### Examples

```
Create a instance with name 'my-new-instance'
$ stackit git create --name my-new-instance
```

### Options

```
-h, --help Help for "stackit git create"
--name string The name of the instance.
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit git](./stackit_git.md) - Provides functionality for STACKIT Git

40 changes: 40 additions & 0 deletions docs/stackit_git_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
## stackit git delete

Deletes STACKIT Git instance

### Synopsis

Deletes a STACKIT Git instance by its internal ID.

```
stackit git delete INSTANCE_ID [flags]
```

### Examples

```
Delete a instance with ID "xxx"
$ stackit git delete xxx
```

### Options

```
-h, --help Help for "stackit git delete"
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit git](./stackit_git.md) - Provides functionality for STACKIT Git

40 changes: 40 additions & 0 deletions docs/stackit_git_describe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
## stackit git describe

Describes STACKIT Git instance

### Synopsis

Describes a STACKIT Git instance by its internal ID.

```
stackit git describe INSTANCE_ID [flags]
```

### Examples

```
Describe instance "xxx"
$ stackit git describe xxx
```

### Options

```
-h, --help Help for "stackit git describe"
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit git](./stackit_git.md) - Provides functionality for STACKIT Git

44 changes: 44 additions & 0 deletions docs/stackit_git_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
## stackit git list

Lists all instances of STACKIT Git.

### Synopsis

Lists all instances of STACKIT Git for the current project.

```
stackit git list [flags]
```

### Examples

```
List all STACKIT Git instances
$ stackit git instance list

Lists up to 10 STACKIT Git instances
$ stackit git instance list --limit=10
```

### Options

```
-h, --help Help for "stackit git list"
--limit int Limit the output to the first n elements
```

### Options inherited from parent commands

```
-y, --assume-yes If set, skips all confirmation prompts
--async If set, runs the command asynchronously
-o, --output-format string Output format, one of ["json" "pretty" "none" "yaml"]
-p, --project-id string Project ID
--region string Target region for region-specific requests
--verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info")
```

### SEE ALSO

* [stackit git](./stackit_git.md) - Provides functionality for STACKIT Git

23 changes: 13 additions & 10 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/stackitcloud/stackit-cli

go 1.24
go 1.24.0

toolchain go1.24.3

require (
github.com/fatih/color v1.18.0
Expand Down Expand Up @@ -37,8 +39,8 @@ require (
golang.org/x/oauth2 v0.30.0
golang.org/x/term v0.32.0
golang.org/x/text v0.25.0
k8s.io/apimachinery v0.32.3
k8s.io/client-go v0.32.3
k8s.io/apimachinery v0.33.0
k8s.io/client-go v0.33.0
)

require (
Expand All @@ -50,7 +52,7 @@ require (
require (
4d63.com/gocheckcompilerdirectives v1.3.0 // indirect
4d63.com/gochecknoglobals v0.2.2 // indirect
al.essio.dev/pkg/shellescape v1.5.1 // indirect
al.essio.dev/pkg/shellescape v1.6.0 // indirect
github.com/4meepo/tagalign v1.4.2 // indirect
github.com/Abirdcfly/dupword v0.1.3 // indirect
github.com/Antonboom/errname v1.1.0 // indirect
Expand Down Expand Up @@ -212,17 +214,17 @@ require (
honnef.co/go/tools v0.6.1 // indirect
mvdan.cc/gofumpt v0.8.0 // indirect
mvdan.cc/unparam v0.0.0-20250301125049-0df0534333a4 // indirect
sigs.k8s.io/randfill v1.0.0 // indirect
)

require (
github.com/cpuguy83/go-md2man/v2 v2.0.6 // indirect
github.com/danieljoos/wincred v1.2.2 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/fsnotify/fsnotify v1.8.0 // indirect
github.com/fsnotify/fsnotify v1.9.0 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/godbus/dbus/v5 v5.1.0 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/mattn/go-runewidth v0.0.16 // indirect
Expand All @@ -231,10 +233,11 @@ require (
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/sagikazarmark/locafero v0.7.0 // indirect
github.com/sagikazarmark/locafero v0.9.0 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spf13/afero v1.14.0 // indirect
github.com/spf13/cast v1.7.1 // indirect
github.com/spf13/cast v1.8.0 // indirect
github.com/stackitcloud/stackit-sdk-go/services/git v0.3.3
github.com/stackitcloud/stackit-sdk-go/services/loadbalancer v1.0.3
github.com/stackitcloud/stackit-sdk-go/services/logme v0.22.2
github.com/stackitcloud/stackit-sdk-go/services/mariadb v0.22.2
Expand All @@ -246,11 +249,11 @@ require (
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/sys v0.33.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/api v0.32.3 // indirect
k8s.io/api v0.33.0 // indirect
k8s.io/klog/v2 v2.130.1 // indirect
k8s.io/utils v0.0.0-20241104100929-3ea5e8cea738 // indirect
sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.4.2 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.6.0 // indirect
sigs.k8s.io/yaml v1.4.0 // indirect
)

Expand Down
Loading