Skip to content

Commit

Permalink
feat: viur install update command (#103)
Browse files Browse the repository at this point in the history
* fixed  merge conflict related bugs

* feature/updateAllForBuilds

* PEP8 Fixes

* refactored old install.py into packtet.py as a pseudo packet manager for viur tools

* Ai generated Documentation

* refactoring and  documentation

* Update README.md

Co-authored-by: Jan Max Meyer <[email protected]>

---------

Co-authored-by: Jan Max Meyer <[email protected]>
  • Loading branch information
Grashalmbeisser and phorward authored Feb 19, 2024
1 parent 3f2dba0 commit ecc2a0e
Show file tree
Hide file tree
Showing 5 changed files with 166 additions and 152 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ This file documents any relevant changes.
- refactor: enabled profile support for all viur-cli functions
- fix: `viur env` now runs without errors
- refactor: project.json functionalities
- feat: `viur package install` and `viur package update` functions

## [1.1.1] 2023-11-28
- chore: updated dependencies
Expand Down
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,17 @@ create a backup bucket and enable the gcloud service worker account to access it


```sh
$ viur install {vi|scriptor}
$ viur package {install|update} {vi|scriptor|admin|all}
```
ask viur-cli to install either vi or the scriptor into your project
handles ViUR ecosystem package operations

Commands:
- `install` installs a ViUR package (in a specific version)
- `update` updates a ViUR package to the newest version

Arguments:
- `profile` profile to install to
- `version` version to install

```sh
$ viur build release
Expand Down
3 changes: 2 additions & 1 deletion src/viur_cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
from .cli import *
from .conf import *
from .deploy import *
from .install import *
from .package import *
from .local import *
from .build import *
from .setup import *
from .version import *
from .scriptor import script
from .tool import *
from .update import *
from .package import *
2 changes: 1 addition & 1 deletion src/viur_cli/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import subprocess
from .conf import config
from . import cli, echo_error, utils
from .install import vi as vi_install
from .package import vi as vi_install
from types import SimpleNamespace


Expand Down
Loading

0 comments on commit ecc2a0e

Please sign in to comment.