apache / apache/openserverless
Add the variable OPS_DIR and OPS_FILE in ops
- Vorherrschende Sprache
- Python
- Sterne
- 576
- Forks
- 29
- Ø Merge
- 50 Min.
- Gemergte PRs (30 T.)
- 13
Beschreibung
## Why you need it?
We need a variable OPS_DIR pointing to the directory where the current opsfile resides.
This is because if you change for example to $OPS_PWD you may beed to refer to the original folder of the opsfile, for example to run
`uv --directory $OPS_DIR run python main.py`
## How it could be?
Add the OPS_DIR of the taskfile you found to the environment and document it
Also OPS_FILE to point to the current opsfile.yml is useful
Beitragsleitfaden
Rechercherichtung
Das Issue nennt die aktuelle opsfile.yml und gibt main.py als Beispiel für das Befehlsziel an. Beginne damit, herauszufinden, wo die Ops-Taskdatei gefunden und ihre Umgebung zusammengestellt wird, und prüfe anschließend die zugehörige Dokumentation. Erledigt ist die Aufgabe, wenn OPS_DIR auf das Verzeichnis der Taskdatei und OPS_FILE auf die aktuelle opsfile.yml verweist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- devops
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100