-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli): generate static files at the granularity of proto messages (…
…#1840) * feat: add message filter for cli * feat: add test * fix: update comment * fix: update error message * fix: remove test file * fix: lint, jsdoc comments, return values Co-authored-by: pluschen <pluschen@tencent.com> Co-authored-by: Alexander Fenster <fenster@google.com>
- Loading branch information
1 parent
ea7b9a6
commit 32f2d6a
Showing
7 changed files
with
225 additions
and
1 deletion.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"messageNames": ["filtertest.NeedMessage1", "filtertest.NeedMessage2"] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
message DependentMessageFromImport { | ||
optional int32 test1 = 1; | ||
} | ||
|
||
message NotNeedMessageInImportFile { | ||
optional int32 test1 = 1; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package filtertest; | ||
import "./test-filter-import.proto"; | ||
|
||
message NeedMessage1 { | ||
optional uint32 test1 = 1; | ||
optional NeedMessage2 needMessage2 = 2; | ||
optional DependentMessage1 dependentMessage1 = 3; | ||
optional DependentMessageFromImport dependentMessage2 = 4; | ||
} | ||
|
||
message NeedMessage2 { | ||
optional uint32 test1 = 1; | ||
} | ||
|
||
message DependentMessage1 { | ||
optional uint32 test1 = 1; | ||
} | ||
|
||
message NotNeedMessageInRootFile { | ||
optional uint32 test1 = 1; | ||
} |