Skip to content

Commit

Permalink
update env 🌳
Browse files Browse the repository at this point in the history
  • Loading branch information
goFrendiAsgard committed Dec 7, 2023
1 parent a46e3ba commit 00ef2e4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/concepts/task-env.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
## `Env`
Task Environment

__Attributes:__

- `name` (`str`): environment name as recognized by Task.
- `os_name` (`Optional[str]`): OS's environment name. Empty string for no os_name.
- `default` (`JinjaTemplate`): Default value of the environment
- `should_render` (`bool`): Whether the environment value should be rendered or not.

### `Env._Env__get_prefixed_name`
No documentation available.

Expand Down
6 changes: 6 additions & 0 deletions src/zrb/task_env/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
class Env():
'''
Task Environment
Attributes:
name (str): environment name as recognized by Task.
os_name (Optional[str]): OS's environment name. Empty string for no os_name.
default (JinjaTemplate): Default value of the environment
should_render (bool): Whether the environment value should be rendered or not.
'''

def __init__(
Expand Down

0 comments on commit 00ef2e4

Please sign in to comment.