Skip to content

Commit

Permalink
Merge pull request #24 from kubero-dev/feature/refactor-cli
Browse files Browse the repository at this point in the history
Feature/refactor cli
  • Loading branch information
mms-gianni authored Sep 26, 2023
2 parents 69b5c65 + 35a717b commit 427c57e
Show file tree
Hide file tree
Showing 60 changed files with 2,711 additions and 1,560 deletions.
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# Dependency directories (remove the comment below to include it)
# vendor/

kubero
/kubero
kubero.yaml
credentials.yaml

Expand All @@ -23,4 +23,6 @@ pipeline.yaml
app.*.yaml
kind.yaml

cmd/VERSION
cmd/VERSION

.kubero
4 changes: 3 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ before:
- go mod tidy
builds:
-
main: pkg/kubero.go
main: cmd/main.go
binary: kubero
env:
- CGO_ENABLED=0
Expand All @@ -26,6 +26,8 @@ changelog:
exclude:
- '^docs:'
- '^test:'
- '^templates:'
- '^.github:'
#brews:
# -
# tap:
Expand Down
43 changes: 28 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,43 @@ Download the latest release [here](https://github.com/kubero-dev/kubero-cli/rele
- Digital Ocean
- Google GKE
- Kind (localhost)
- Oracle Cloud OCI/OKE
- Vultr (soon)
- Oracle Cloud OCI/OKE (soon)
- Exoscale (soon)
- Swissflow (soon)


## Usage
Command map
```
kubero
├── apps
│ ├── create
│ ├── fetch
│ ├── list
│ └── delete
├── config
├── install // create kubernetes cluster and install kubero with all required components
* ├── login // login to kubero, safe instance to credentials file
* ├── logout // logout from kubero, remove instance from credentials file
* ├── instance // print current kubero instance
* │ ├── create // create a configuration to a kubero instance
* │ ├── delete // delete a configuration to a kubero instance
* │ ├── select // select a kubero instance
├── create // create a new pipeline and app config
│ ├── app
│ └── pipeline
├── list // list all running pipelines and apps
├── up // deploy app and pipeline
│ ├── app
│ └── pipeline
├── down // delete app and pipeline
│ ├── app
│ └── pipeline
├── fetch // sync app and pipeline to local config
│ ├── app
│ └── pipeline
├── config // print configurations
│ ├── addons
│ ├── buildpacks
│ └── podsizes
├── help
├── init
├── install
└── pipelines
├── create
├── fetch
├── list
└── delete
├── dashboard // Open the kubero dashboard
├── tunnel // Open a tunnel to a natted cluster
└── help // Help about any command
```


Expand Down
145 changes: 0 additions & 145 deletions cmd/apps.go

This file was deleted.

Loading

0 comments on commit 427c57e

Please sign in to comment.