-
-
Notifications
You must be signed in to change notification settings - Fork 24
feat: support for empty file names #436
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
Closed
Closed
Changes from 5 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
008e8c8
feat: support for empty file names #419
edayot 9f3dec1
fix: better example
edayot 6db43ad
style: black
edayot 48ccede
feat: improving doc & functionnality
edayot 531324a
upload snapshots
edayot cb6d4cb
delete docstring and add a proper test to account for the issue
edayot 7c127d9
black
edayot 4394984
Merge remote-tracking branch 'upstream/main'
edayot dacd6a5
update tests
edayot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| from beet import Context, Function | ||
|
|
||
|
|
||
| def beet_default(ctx: Context): | ||
| for f in ctx.data.functions.keys(): | ||
| ctx.data.functions[f] = Function(f"say {f}") | ||
|
|
||
| ctx.data.functions["namespace:"] = Function("give me sugar") | ||
| ctx.data.functions["namespace:a/"] = Function("give me apple") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| data_pack: | ||
| load: [.] | ||
| resource_pack: | ||
| load: [.] | ||
|
|
||
| output: build | ||
|
|
||
|
|
||
| pipeline: | ||
| - add_header |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
1 change: 1 addition & 0 deletions
1
tests/snapshots/examples__build_code_void__0.data_pack/data/namespace/functions/.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| give me sugar |
1 change: 1 addition & 0 deletions
1
...s/snapshots/examples__build_code_void__0.data_pack/data/namespace/functions/a/.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| give me apple |
1 change: 1 addition & 0 deletions
1
tests/snapshots/examples__build_code_void__0.data_pack/data/test/functions/...mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| say test:.. |
1 change: 1 addition & 0 deletions
1
tests/snapshots/examples__build_code_void__0.data_pack/data/test/functions/..mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| say test:. |
1 change: 1 addition & 0 deletions
1
tests/snapshots/examples__build_code_void__0.data_pack/data/test/functions/.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| say test: |
1 change: 1 addition & 0 deletions
1
...apshots/examples__build_code_void__0.data_pack/data/test/functions/.mcfunction.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| say test:.mcfunction |
1 change: 1 addition & 0 deletions
1
...mples__build_code_void__0.data_pack/data/test/functions/.mcfunction.mcfunction.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| say test:.mcfunction.mcfunction |
1 change: 1 addition & 0 deletions
1
tests/snapshots/examples__build_code_void__0.data_pack/data/test/functions/a.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| say test:a |
1 change: 1 addition & 0 deletions
1
.../snapshots/examples__build_code_void__0.data_pack/data/test/functions/a.py.git.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| say test:a.py.git |
1 change: 1 addition & 0 deletions
1
tests/snapshots/examples__build_code_void__0.data_pack/data/test/functions/a/...mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| say test:a/.. |
1 change: 1 addition & 0 deletions
1
tests/snapshots/examples__build_code_void__0.data_pack/data/test/functions/a/..mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| say test:a/. |
1 change: 1 addition & 0 deletions
1
tests/snapshots/examples__build_code_void__0.data_pack/data/test/functions/a/.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| say test:a/ |
1 change: 1 addition & 0 deletions
1
...shots/examples__build_code_void__0.data_pack/data/test/functions/a/.mcfunction.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| say test:a/.mcfunction |
1 change: 1 addition & 0 deletions
1
tests/snapshots/examples__build_code_void__0.data_pack/data/test/functions/a/a.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| say test:a/a |
1 change: 1 addition & 0 deletions
1
...napshots/examples__build_code_void__0.data_pack/data/test/functions/a/a.py.git.mcfunction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| say test:a/a.py.git |
6 changes: 6 additions & 0 deletions
6
tests/snapshots/examples__build_code_void__0.data_pack/pack.mcmeta
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| "pack": { | ||
| "pack_format": 26, | ||
| "description": "" | ||
| } | ||
| } |
6 changes: 6 additions & 0 deletions
6
tests/snapshots/examples__build_code_void__1.resource_pack/pack.mcmeta
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| "pack": { | ||
| "pack_format": 22, | ||
| "description": "" | ||
| } | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.