🔨 Restructure entire project logic

- Moved readers to the config package
- Added an option to read remote config files
- Moved the validation package to the config package and removed the validator dependency
- Moved the customerrors package to the config package
- Replaced fatih/color with jedib0t/go-pretty/v6/text
- Removed proxy check functionality
- Added param, header, cookie, body, and proxy flags to the CLI
- Allowed multiple values for the same key in params, headers, and cookies
This commit is contained in:
2025-03-16 21:20:33 +04:00
parent 8f811e1bec
commit 00f0bcb2de
35 changed files with 1461 additions and 1492 deletions

View File

@ -1,6 +1,6 @@
FROM golang:1.24-alpine AS builder
WORKDIR /dodo
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
@ -11,9 +11,9 @@ RUN echo "{}" > config.json
FROM gcr.io/distroless/static-debian12:latest
WORKDIR /dodo
WORKDIR /
COPY --from=builder /dodo/dodo /dodo/dodo
COPY --from=builder /dodo/config.json /dodo/config.json
COPY --from=builder /src/dodo /dodo
COPY --from=builder /src/config.json /config.json
ENTRYPOINT ["./dodo", "-c", "/dodo/config.json"]
ENTRYPOINT ["./dodo", "-f", "/config.json"]