Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change configs from expiration to ttl #213

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions internal/utils/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ func AddExportTypeFlags(flags *pflag.FlagSet) {
flags.BoolP("export-contract-code", "", false, "set in order to export contract code changes")
flags.BoolP("export-contract-data", "", false, "set in order to export contract data changes")
flags.BoolP("export-config-settings", "", false, "set in order to export config settings changes")
flags.BoolP("export-expiration", "", false, "set in order to export expiration changes")
flags.BoolP("export-ttl", "", false, "set in order to export ttl changes")
}

// MustCommonFlags gets the values of the the flags common to all commands: end-ledger and strict-export. If any do not exist, it stops the program fatally using the logger
Expand Down Expand Up @@ -381,7 +381,7 @@ func MustCoreFlags(flags *pflag.FlagSet, logger *EtlLogger) (execPath, configPat
}

// MustExportTypeFlags gets the values for the export-accounts, export-offers, and export-trustlines flags. If any do not exist, it stops the program fatally using the logger
// func MustExportTypeFlags(flags *pflag.FlagSet, logger *EtlLogger) (exportAccounts, exportOffers, exportTrustlines, exportPools, exportBalances, exportContractCode, exportContractData, exportConfigSettings, exportExpiration bool) {
// func MustExportTypeFlags(flags *pflag.FlagSet, logger *EtlLogger) (exportAccounts, exportOffers, exportTrustlines, exportPools, exportBalances, exportContractCode, exportContractData, exportConfigSettings, exportTtl bool) {
func MustExportTypeFlags(flags *pflag.FlagSet, logger *EtlLogger) map[string]bool {
var err error
exports := map[string]bool{
Expand All @@ -393,7 +393,7 @@ func MustExportTypeFlags(flags *pflag.FlagSet, logger *EtlLogger) map[string]boo
"export-contract-code": false,
"export-contract-data": false,
"export-config-settings": false,
"export-expiration": false,
"export-ttl": false,
}

for export_name, _ := range exports {
Expand Down
Loading