-
Notifications
You must be signed in to change notification settings - Fork 117
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
CLI initial concept #304
Open
escritorio-gustavo
wants to merge
49
commits into
main
Choose a base branch
from
cli
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
CLI initial concept #304
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
4570d9e
CLI initial concept
escritorio-gustavo 7c15180
Add --add-features flag, fix feature! macro and bson-uuid-impl
escritorio-gustavo 1518c18
Remove *-impl features from CLI
escritorio-gustavo 257d04e
Gate test generation behind cargo feature
escritorio-gustavo 27669f1
Update Github action
escritorio-gustavo ca3eb23
Make the --output-directory flag an Option instead of having a defaul…
escritorio-gustavo 7914bea
Initial draft on generating index.ts
escritorio-gustavo 58df89d
Add missing file
escritorio-gustavo 67f9631
Update Github action
escritorio-gustavo f092001
Check for empty index and emit codegen warning
escritorio-gustavo 7192a8b
Save relative paths in netadata file
escritorio-gustavo 2b09065
Remove unused import
escritorio-gustavo d18bf79
Remove unused read file access
escritorio-gustavo af0d6d3
Add naming collision warning
escritorio-gustavo 41cf034
Add imports
escritorio-gustavo 2ea928f
MAke warnings colorful
escritorio-gustavo 9557f9f
Also highlight type names
escritorio-gustavo 4ec1679
Make type names bold
escritorio-gustavo 9c45249
Remove commented dependency
escritorio-gustavo 98b0c01
Print Rust type name in collision warning
escritorio-gustavo b80f988
Capture cargo test stderr and stdout
escritorio-gustavo 363f7c8
Refactor CLI code
escritorio-gustavo 7894b4b
Commit untracked files
escritorio-gustavo 65524d5
Export all files, not just the first metadata entry
escritorio-gustavo 7560098
Delete metadata file
escritorio-gustavo 770d6ea
Add metadata file to .gitignore
escritorio-gustavo e52085c
Enable clippy pedantic and nursery
escritorio-gustavo 275b15d
Merge branch 'main' into cli
escritorio-gustavo b402bdc
Merge branch 'main' into cli
escritorio-gustavo b1b5cbe
Clippy warning in test
escritorio-gustavo 6790173
Remove duplicated infer_as test file
escritorio-gustavo 50bfc35
Add error message about naming collisions
escritorio-gustavo 88fc140
Gate metadata file behind feature
escritorio-gustavo 66c94dd
No longer capture stderr as that would silence serde warnings
escritorio-gustavo 1461d3f
Remove changes to infer_as test
escritorio-gustavo b6c5c65
Make --output-directory required
escritorio-gustavo c8a6b14
Make casing consistent
escritorio-gustavo fcaa80f
Merge branch 'main' into cli
escritorio-gustavo c930c0f
Avoid extra collection allocation
escritorio-gustavo 9b19079
Improve parsing of Metadata
escritorio-gustavo 8ff6688
Replace new with try_from for clarity
escritorio-gustavo f229f92
Add option to export all types to a single file
escritorio-gustavo c9b29aa
Missing imports
escritorio-gustavo 89430eb
Fix Syntax Error
escritorio-gustavo 147ea87
Merge branch 'main' into cli
escritorio-gustavo 00f14af
Merge branch 'main' into cli
gustavo-shigueo 7c9643e
Merge branch 'main' into cli
gustavo-shigueo 5d72d97
Merge branch 'main' into cli
gustavo-shigueo 5abdda9
Fix lockfile
gustavo-shigueo 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 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 |
---|---|---|
|
@@ -7,3 +7,4 @@ edition = "2021" | |
|
||
[dependencies] | ||
clap = { version = "4", features = ["derive"]} | ||
color-eyre = "0.6" |
This file contains 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 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to duplicate
ts-rs/src/export/path.rs
to make absolute pathsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we make a
ts-rs-core
crate to share these types of functions?