Fixed invalid references to pastebin now scratchbox
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
## Purpose
|
||||
|
||||
This repository hosts a small self-hosted scratch service (pastebin-like) written in Go.
|
||||
This repository hosts a small self-hosted scratch service written in Go.
|
||||
|
||||
Key product constraints:
|
||||
- All routes are unauthenticated by design.
|
||||
@@ -12,7 +12,7 @@ Key product constraints:
|
||||
|
||||
## Project layout
|
||||
|
||||
- `cmd/pastebin`: service entrypoint
|
||||
- `cmd/scratchbox`: service entrypoint
|
||||
- `internal/config`: config loading and validation
|
||||
- `internal/http`: HTTP handlers and middleware
|
||||
- `internal/storage`: filesystem storage and metadata index
|
||||
@@ -42,7 +42,7 @@ Use `make help` as the source of truth for available build/test targets and desc
|
||||
|
||||
## Cobra CLI conventions
|
||||
|
||||
- Keep `cmd/pastebin/main.go` focused on `main()` and root command wiring.
|
||||
- Put each Cobra subcommand in its own file (for example `cmd/pastebin/server.go`).
|
||||
- Keep `cmd/scratchbox/main.go` focused on `main()` and root command wiring.
|
||||
- Put each Cobra subcommand in its own file (for example `cmd/scratchbox/server.go`).
|
||||
- Start the service through the explicit subcommand (`scratchbox server`), not from the root command directly.
|
||||
- Validate command arguments with Cobra arg validators (for example `cobra.NoArgs`) where applicable.
|
||||
|
||||
Reference in New Issue
Block a user