Skip to content

Commit

Permalink
chore: removed most unused commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Fazt01 committed Aug 16, 2024
1 parent 5323dc9 commit 420ff4f
Show file tree
Hide file tree
Showing 53 changed files with 5 additions and 5,266 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ How to release a new version:
- Manually release new version.

## [Unreleased]
### Removed
- `openapi compose`, `repo init`, `repo template` commands.

## [0.4.0] - 2023-03-27
### Added
Expand Down
50 changes: 0 additions & 50 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,56 +53,6 @@ type (
```
After triggering `go generate ./...` within an app, methods `MarshalText` and `UnmarshalText` along with other useful functions are generated.

### openapi
This command provides a set of tools to manage OpenAPI specifications.

Subcommand `compose` merges multiple OpenAPI specifications into a single schema. Example:
```shell
$ tea openapi compose -i ./api/openapi_compose.yaml -o ./api/openapi.yaml
```

This command can also be used as an embedded go generator to embed OpenAPI specification. Example:

```go
import _ "embed
//go:generate tea openapi compose -i ./openapi_compose.yaml -o ./openapi.yaml
//go:embed openapi.yaml
var OpenAPI string
```
After triggering `go generate ./...` within an app, `openapi.yaml` is generated. Afterthat, it is embedded into the app during build.
### repo
This command provides a set of tools to manage a local Go repository. Note that it is required to have a configured `.cup` file in the root of the repository
you wish to configure or have one in the home directory as a default.
Subcommand `template` finds and executes template files and folders in the repository. It is useful for creating a template repository
which will be later used for the creation of another project.
By default, it executes all files ending with `*.template` in the local directory and its subdirectories. Example:
```shell
$ tea repo template --recursive
```
.cup:
```yaml
repo:
template:
module: test
author: Jane Doe
values:
- name: config
data:
port: 8080
version: 0.1.0
```
test.template:
```yaml
module: {{ .Module }}
author: {{ .Author }}
config:
port: "{{ .Values.config.port }}"
version: {{ .Version }}
```
[release]: https://img.shields.io/github/v/release/strvcom/strv-backend-go-tea
[codecov]: https://codecov.io/gh/strvcom/strv-backend-go-tea
[codecov-img]: https://codecov.io/gh/strvcom/strv-backend-go-tea/branch/master/graph/badge.svg?token=A7QFX32CFF
Expand Down
26 changes: 0 additions & 26 deletions cmd/tea/oapi.go

This file was deleted.

105 changes: 0 additions & 105 deletions cmd/tea/oapi_compose.go

This file was deleted.

75 changes: 0 additions & 75 deletions cmd/tea/oapi_compose_test.go

This file was deleted.

28 changes: 0 additions & 28 deletions cmd/tea/repo.go

This file was deleted.

Loading

0 comments on commit 420ff4f

Please sign in to comment.