Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: automated tree file formatting #46

Open
stevenvaleri opened this issue Oct 12, 2023 · 1 comment
Open

feature request: automated tree file formatting #46

stevenvaleri opened this issue Oct 12, 2023 · 1 comment
Labels
Feat New feature or request Good First Issue Good for newcomers Uphill Needs research before being implemented

Comments

@stevenvaleri
Copy link

Automatically convert from

VS Code has a nice tree generator: Ascii Tree Generator plug in, but even using that can be a bit tedious converting to and from tree syntax. Bulloak doing this conversion for you would be quite nice.

The plugin allows you to use hashtags for tree structures and automatically converts it into the nice tree.

# when there is a condition
## it should revert
# when there isn't the condition
## when sender is authorized
### it should update the state
@alexfertel alexfertel added Feat New feature or request Uphill Needs research before being implemented labels Oct 17, 2023
@stevenvaleri stevenvaleri changed the title feature request feature request: automated tree file formatting Oct 17, 2023
@matmilbury
Copy link

IMO this would be more readable:

HashPairTest
  It should never revert.
  When first arg is smaller than second arg
    It should match the result of `keccak256(abi.encodePacked(a,b))`.
  When first arg is bigger than second arg
    It should match the result of `keccak256(abi.encodePacked(b,a))`.

than that:

HashPairTest
# It should never revert.
# When first arg is smaller than second arg
## It should match the result of `keccak256(abi.encodePacked(a,b))`.
# When first arg is bigger than second arg
## It should match the result of `keccak256(abi.encodePacked(b,a))`.

Essentially if we could have bulloak tree working like this, all pain points related to the tree formatting would be gone ✨

@alexfertel alexfertel added the Good First Issue Good for newcomers label Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feat New feature or request Good First Issue Good for newcomers Uphill Needs research before being implemented
Projects
None yet
Development

No branches or pull requests

3 participants