Skip to content

Commit

Permalink
fix: sequencer project subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
saitofun committed Jul 18, 2024
1 parent 1cbe1ed commit d27f5c8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
16 changes: 5 additions & 11 deletions cmd/sequencer/commands/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,15 @@ func NewDefaultSproutConfigGenerator() *SproutConfigGenerator {
Network: "mainnet",
OutputPath: ".",
WasmVersion: "v0.0.1",

MultiLangHelper: confcmd.NewDefaultMultiLangHelper(),
FlagSet: confcmd.NewFlagSet(),
}
}

type SproutConfigGenerator struct {
Network string ` help.en:"iotx network testnet or mainnet"`
OutputPath string ` help.en:"config file output path"`
WasmVersion string ` help.en:"wasm version"`
WasmPath string `cmd:",r" help.en:"wasm code path"`
DataSource string `cmd:",r" help.en:"project datasource"`

*confcmd.MultiLangHelper
*confcmd.FlagSet
Network string ` help:"iotx network testnet or mainnet"`
OutputPath string ` help:"config file output path"`
WasmVersion string ` help:"wasm version"`
WasmPath string `cmd:",require" help:"wasm code path"`
DataSource string `cmd:",require" help:"project datasource"`
}

var _ confcmd.Executor = (*SproutConfigGenerator)(nil)
Expand Down
4 changes: 2 additions & 2 deletions cmd/sequencer/config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ PEBBLE_SEQUENCER__LarkAlert_Env: PROD
PEBBLE_SEQUENCER__LarkAlert_Project: pebble-sequencer
PEBBLE_SEQUENCER__LarkAlert_Secret: ""
PEBBLE_SEQUENCER__LarkAlert_URL: ""
PEBBLE_SEQUENCER__LarkAlert_Version: ""
PEBBLE_SEQUENCER__LarkAlert_Version: v0.2.7-1-g1cbe1ed
PEBBLE_SEQUENCER__Logger_Level: DEBUG
PEBBLE_SEQUENCER__MqttBroker_Cert_CA: ""
PEBBLE_SEQUENCER__MqttBroker_Cert_Crt: ""
PEBBLE_SEQUENCER__MqttBroker_Cert_Key: ""
PEBBLE_SEQUENCER__MqttBroker_Keepalive: "10800000000000"
PEBBLE_SEQUENCER__MqttBroker_Keepalive: "3000000000"
PEBBLE_SEQUENCER__MqttBroker_QoS: ONCE
PEBBLE_SEQUENCER__MqttBroker_RetainPublish: "false"
PEBBLE_SEQUENCER__MqttBroker_Retry_Interval: "3000000000"
Expand Down

0 comments on commit d27f5c8

Please sign in to comment.