Skip to content

Commit 2a1afb9

Browse files
committed
docs: Remove entproto section from Sphere CLI docs for simplicity
1 parent 98acc80 commit 2a1afb9

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

content/docs/components/sphere-cli.md

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -56,32 +56,6 @@ This command creates a new project directory with the [sphere-layout](https://gi
5656
- Standard directory structure
5757
- Example configurations
5858

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

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

0 commit comments

Comments
 (0)