forked from cerc-io/ipld-eth-server
Add rendering of available transformer names to continuousLogSync help (#109)
This commit is contained in:
parent
672269effa
commit
571f300392
@ -15,6 +15,7 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"time"
|
||||
|
||||
@ -31,11 +32,15 @@ import (
|
||||
var continuousLogSyncCmd = &cobra.Command{
|
||||
Use: "continuousLogSync",
|
||||
Short: "Continuously sync logs at the head of the chain",
|
||||
Long: `Continously syncs logs based on the configured transformers.
|
||||
Long: fmt.Sprintf(`Continously syncs logs based on the configured transformers.
|
||||
|
||||
vulcanizedb continousLogSync --config environments/local.toml
|
||||
|
||||
Available transformers for (optional) selection with --transformers:
|
||||
%v
|
||||
|
||||
This command expects a light sync to have been run, and the presence of header records in the Vulcanize database.`,
|
||||
constants.AllTransformerLabels()),
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
syncMakerLogs()
|
||||
},
|
||||
|
@ -31,3 +31,37 @@ var (
|
||||
VatTuneLabel = "vatTune"
|
||||
VowFlogLabel = "vowFlog"
|
||||
)
|
||||
|
||||
func AllTransformerLabels() []string {
|
||||
return []string{
|
||||
BiteLabel,
|
||||
CatFileChopLumpLabel,
|
||||
CatFileFlipLabel,
|
||||
CatFilePitVowLabel,
|
||||
DealLabel,
|
||||
DentLabel,
|
||||
DripDripLabel,
|
||||
DripFileIlkLabel,
|
||||
DripFileRepoLabel,
|
||||
DripFileVowLabel,
|
||||
FlapKickLabel,
|
||||
FlipKickLabel,
|
||||
FlopKickLabel,
|
||||
FrobLabel,
|
||||
PitFileDebtCeilingLabel,
|
||||
PitFileIlkLabel,
|
||||
PitFileStabilityFeeLabel,
|
||||
PriceFeedLabel,
|
||||
TendLabel,
|
||||
VatFluxLabel,
|
||||
VatFoldLabel,
|
||||
VatGrabLabel,
|
||||
VatHealLabel,
|
||||
VatInitLabel,
|
||||
VatMoveLabel,
|
||||
VatSlipLabel,
|
||||
VatTollLabel,
|
||||
VatTuneLabel,
|
||||
VowFlogLabel,
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user