aboutsummaryrefslogtreecommitdiff
path: root/cmd/plutia
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-26 16:34:38 -0800
committerFuwn <[email protected]>2026-02-26 16:34:38 -0800
commita8135dbd6e2e64222a20a80d29f1f85ce3e240b0 (patch)
tree62b45b1c98c1f7673ea16fa5912ba353044d7464 /cmd/plutia
parentstyle: align codebase with official Go idioms (diff)
downloadplutia-test-a8135dbd6e2e64222a20a80d29f1f85ce3e240b0.tar.xz
plutia-test-a8135dbd6e2e64222a20a80d29f1f85ce3e240b0.zip
chore: rename template config to config.default.yaml
Diffstat (limited to 'cmd/plutia')
-rw-r--r--cmd/plutia/main.go24
1 files changed, 12 insertions, 12 deletions
diff --git a/cmd/plutia/main.go b/cmd/plutia/main.go
index e3e1a12..1c533af 100644
--- a/cmd/plutia/main.go
+++ b/cmd/plutia/main.go
@@ -84,7 +84,7 @@ func main() {
func runServe(args []string) error {
fs := flag.NewFlagSet("serve", flag.ExitOnError)
- configPath := fs.String("config", "config.yaml", "config path")
+ configPath := fs.String("config", "config.default.yaml", "config path")
maxOps := fs.Uint64("max-ops", 0, "max operations to ingest in this process (0 = unlimited)")
if err := fs.Parse(args); err != nil {
@@ -169,7 +169,7 @@ func runServe(args []string) error {
func runReplay(args []string) error {
fs := flag.NewFlagSet("replay", flag.ExitOnError)
- configPath := fs.String("config", "config.yaml", "config path")
+ configPath := fs.String("config", "config.default.yaml", "config path")
maxOps := fs.Uint64("max-ops", 0, "max operations to ingest in this process (0 = unlimited)")
if err := fs.Parse(args); err != nil {
@@ -206,7 +206,7 @@ func runReplay(args []string) error {
func runVerify(args []string) error {
fs := flag.NewFlagSet("verify", flag.ExitOnError)
- configPath := fs.String("config", "config.yaml", "config path")
+ configPath := fs.String("config", "config.default.yaml", "config path")
did := fs.String("did", "", "did to verify")
if err := fs.Parse(args); err != nil {
@@ -237,7 +237,7 @@ func runVerify(args []string) error {
func runSnapshot(args []string) error {
fs := flag.NewFlagSet("snapshot", flag.ExitOnError)
- configPath := fs.String("config", "config.yaml", "config path")
+ configPath := fs.String("config", "config.default.yaml", "config path")
if err := fs.Parse(args); err != nil {
return err
@@ -265,7 +265,7 @@ func runSnapshot(args []string) error {
func runBench(args []string) error {
fs := flag.NewFlagSet("bench", flag.ExitOnError)
- configPath := fs.String("config", "config.yaml", "config path")
+ configPath := fs.String("config", "config.default.yaml", "config path")
maxOps := fs.Uint64("max-ops", 200000, "max operations to ingest for benchmark")
interval := fs.Duration("interval", 10*time.Second, "rolling report interval")
@@ -359,7 +359,7 @@ func runBench(args []string) error {
func runCompare(args []string) error {
fs := flag.NewFlagSet("compare", flag.ExitOnError)
- configPath := fs.String("config", "config.yaml", "config path")
+ configPath := fs.String("config", "config.default.yaml", "config path")
remote := fs.String("remote", "", "remote mirror base URL")
if err := fs.Parse(args); err != nil {
@@ -526,12 +526,12 @@ func usage() {
fmt.Fprintf(os.Stderr, `plutia: verifiable PLC mirror
Commands:
- plutia serve --config=config.yaml [--max-ops=0]
- plutia replay --config=config.yaml [--max-ops=0]
- plutia verify --config=config.yaml --did=did:plc:xyz
- plutia snapshot --config=config.yaml
- plutia bench --config=config.yaml [--max-ops=200000] [--interval=10s]
- plutia compare --config=config.yaml --remote=https://mirror.example.com
+ plutia serve --config=config.default.yaml [--max-ops=0]
+ plutia replay --config=config.default.yaml [--max-ops=0]
+ plutia verify --config=config.default.yaml --did=did:plc:xyz
+ plutia snapshot --config=config.default.yaml
+ plutia bench --config=config.default.yaml [--max-ops=200000] [--interval=10s]
+ plutia compare --config=config.default.yaml --remote=https://mirror.example.com
plutia version
`)
}