Skip to content

Commit 3a94afa

Browse files
committed
chore: Remove entproto command and related entity code
Deleted the entproto command, its documentation, and all related internal entity code including graph, proto generation, and mapper logic. This simplifies the codebase by removing Ent-to-Protobuf and Ent-mapper generation features.
1 parent df28544 commit 3a94afa

File tree

7 files changed

+0
-1300
lines changed

7 files changed

+0
-1300
lines changed

README.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -58,29 +58,6 @@ sphere-cli create list
5858

5959
---
6060

61-
### `entproto`
62-
63-
Converts Ent schemas into Protobuf (`.proto`) definitions. This command reads your Ent schema files and generates corresponding `.proto` files.
64-
65-
**Usage:**
66-
```shell
67-
sphere-cli entproto [flags]
68-
```
69-
70-
**Flags:**
71-
- `--path string`: Path to the Ent schema directory (default: `./schema`).
72-
- `--proto string`: Output directory for the generated `.proto` files (default: `./proto`).
73-
- `--all_fields_required`: Treat all fields as required, ignoring `Optional()` (default: `true`).
74-
- `--auto_annotation`: Automatically add `@entproto` annotations to the schema (default: `true`).
75-
- `--enum_raw_type`: Use `string` as the type for enums in Protobuf (default: `true`).
76-
- `--skip_unsupported`: Skip fields with types that are not supported (default: `true`).
77-
- `--time_proto_type string`: Protobuf type to use for `time.Time` fields. Options: `int64`, `string`, `google.protobuf.Timestamp` (default: `int64`).
78-
- `--uuid_proto_type string`: Protobuf type to use for `uuid.UUID` fields. Options: `string`, `bytes` (default: `string`).
79-
- `--unsupported_proto_type string`: Protobuf type to use for unsupported fields. Options: `google.protobuf.Any`, `google.protobuf.Struct`, `bytes` (default: `google.protobuf.Any`).
80-
- `--import_proto string`: Define external Protobuf imports. Format: `path1,package1,type1;path2,package2,type2` (default: `google/protobuf/any.proto,google.protobuf,Any;`).
81-
82-
---
83-
8461
### `service`
8562

8663
Generates service code, including both Protobuf definitions and Go service implementations.

cmd/entproto.go

Lines changed: 0 additions & 103 deletions
This file was deleted.

internal/entity/gen.go

Lines changed: 0 additions & 144 deletions
This file was deleted.

0 commit comments

Comments
 (0)