mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
protobuf package should be in PascalCase
This commit is contained in:
parent
35975b142b
commit
3ca4a13cf2
3 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@ syntax = "proto3";
|
||||||
|
|
||||||
import "fluent.proto";
|
import "fluent.proto";
|
||||||
|
|
||||||
package backend_proto;
|
package BackendProto;
|
||||||
|
|
||||||
// Generic containers
|
// Generic containers
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -62,9 +62,9 @@ def python_type_inner(field):
|
||||||
|
|
||||||
def fullname(fullname):
|
def fullname(fullname):
|
||||||
if "FluentString" in fullname:
|
if "FluentString" in fullname:
|
||||||
return fullname.replace("backend_proto", "anki.fluent_pb2")
|
return fullname.replace("BackendProto", "anki.fluent_pb2")
|
||||||
else:
|
else:
|
||||||
return fullname.replace("backend_proto", "pb")
|
return fullname.replace("BackendProto", "pb")
|
||||||
|
|
||||||
|
|
||||||
# get_deck_i_d -> get_deck_id etc
|
# get_deck_i_d -> get_deck_id etc
|
||||||
|
|
|
@ -26,7 +26,7 @@ fn proto_enum(idents: &[String]) -> String {
|
||||||
r#"// This file is automatically generated as part of the build process.
|
r#"// This file is automatically generated as part of the build process.
|
||||||
|
|
||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
package backend_proto;
|
package BackendProto;
|
||||||
enum FluentString {
|
enum FluentString {
|
||||||
"#,
|
"#,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue