apache / apache/openserverless

support for virtual environments

オープン
#95 コメント 0 件 リアクション 0 件 担当者 1 名 @sciabarracom が担当を希望しています GitHub で見る
主要言語
Python
スター
576
フォーク
29
平均マージ
50分
マージ済み PR(30日)
13

説明

## Why you need it?
Currently there is only one global environment so you can be logged into one system at a time, and you have only one ~/.ops with its plugins

I want to add support to have multiple virtual environments

## How it could be?
A virtual environent is (or should be) entirely defined by 2 variables
- `OPS_HOME` that sets the location of `~/.ops`
- `WSK_CONFIG_FILE` that sets the location of the `~/.wskprops`

It could be as simple as to check if in current directlry there is a `.ops` and in such a case to set `OPS_HOME` to the current directory and `WSK_CONFIG_FILE` to `$OPS_HOME/.wskprops`

Also it is useful to add a simple: `ops -venv` that will create a `.ops` and execute an update downloading in it task and prereqs.

## Other related information
Check there are not somewhere implicit assumptions of ~/.ops in the task and the code that can break this new logic.
Update documentation.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。