Skip to content

Commit

Permalink
Merge pull request #22 from angrybayblade/release/v0.1.0.rc4
Browse files Browse the repository at this point in the history
Release v0.1.0.rc4
  • Loading branch information
angrybayblade authored Dec 4, 2023
2 parents 045e6b5 + 6dbbf16 commit 6304361
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v0.1.0.rc4

* Fix context propagation in the child wrappers

# v0.1.0.rc3

* Adds support for isolated runs
Expand Down
10 changes: 6 additions & 4 deletions docs/context.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Context object provides a simple key-value data store for storing and retrieving

from clea.context import Context
from clea.runner import run
from clea.wrappers import group
from clea.wrappers import command, group


@group
Expand All @@ -19,19 +19,21 @@ def admin(context: Context) -> None:
context.set("foo", "bar")


@admin.group(name="manage")
@admin.group(name="manage", allow_direct_exec=True)
def manage(context: Context) -> None:
"""Manage."""
context.set("hello", "world")


@manage.command
@command
def student(context: Context) -> None:
"""Manage."""
"""Student."""
print(context.get("foo"))
print(context.get("hello"))


manage.add_child(student)

if __name__ == "__main__":
run(cli=admin)
```
Expand Down
4 changes: 4 additions & 0 deletions docs/upgrading.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## `0.1.0.rc3` to `0.1.0.rc4`

- No backwards incompatible changes

## `0.1.0.rc2` to `0.1.0.rc3`

- No backwards incompatible changes
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "clea"
version = "0.1.0.rc3"
version = "0.1.0.rc4"
description = "Framework for writing CLI application quickly"
readme = "README.md"
authors = ["angrybayblade <[email protected]>"]
Expand Down

0 comments on commit 6304361

Please sign in to comment.