diff --git a/src/assistant/i18n/messages-command.go b/src/assistant/i18n/messages-command.go index 47b02ec..73fa146 100644 --- a/src/assistant/i18n/messages-command.go +++ b/src/assistant/i18n/messages-command.go @@ -140,29 +140,29 @@ func (td LanguageParamUsageTemplData) Message() *Message { } } -// DepthDepthParamUsageTemplData +// CascadeDepthParamUsageTemplData // 🧊 -type DepthDepthParamUsageTemplData struct { +type CascadeDepthParamUsageTemplData struct { CobrassTemplData } -func (td DepthDepthParamUsageTemplData) Message() *Message { +func (td CascadeDepthParamUsageTemplData) Message() *Message { return &Message{ - ID: "depth-depth.param-usage", + ID: "cascade-depth.param-usage", Description: "limits the number of sub directories navigated", Other: "depth denotes the number of sub directories to navigate", } } -// DepthSkimParamUsageTemplData +// CascadeSkimParamUsageTemplData // 🧊 -type DepthSkimParamUsageTemplData struct { +type CascadeSkimParamUsageTemplData struct { CobrassTemplData } -func (td DepthSkimParamUsageTemplData) Message() *Message { +func (td CascadeSkimParamUsageTemplData) Message() *Message { return &Message{ - ID: "depth-skim.param-usage", + ID: "cascade-skim.param-usage", Description: "sets the navigator to not descend into sub directories", Other: "skim sets the navigator to not descend into sub directories", } diff --git a/src/store/families_test.go b/src/store/families_test.go index b3abc6d..7d114ea 100644 --- a/src/store/families_test.go +++ b/src/store/families_test.go @@ -331,9 +331,9 @@ var _ = Describe("Families", Ordered, func() { }) }) - DescribeTable("depth family", + DescribeTable("cascade family", func(entry *familyTE) { - ps := assistant.NewParamSet[store.DepthParameterSet](rootCommand) + ps := assistant.NewParamSet[store.CascadeParameterSet](rootCommand) if entry.persistent { ps.Native.BindAll(ps, rootCommand.PersistentFlags()) } else { diff --git a/src/store/family-depth.go b/src/store/family-cascade.go similarity index 73% rename from src/store/family-depth.go rename to src/store/family-cascade.go index b295232..a94f354 100644 --- a/src/store/family-depth.go +++ b/src/store/family-cascade.go @@ -7,13 +7,13 @@ import ( "github.com/spf13/pflag" ) -type DepthParameterSet struct { +type CascadeParameterSet struct { Depth uint Skim bool } -func (f *DepthParameterSet) BindAll( - parent *assistant.ParamSet[DepthParameterSet], +func (f *CascadeParameterSet) BindAll( + parent *assistant.ParamSet[CascadeParameterSet], flagSet ...*pflag.FlagSet, ) { // --depth @@ -24,7 +24,7 @@ func (f *DepthParameterSet) BindAll( parent.BindUint( resolveNewFlagInfo( - xi18n.Text(i18n.DepthDepthParamUsageTemplData{}), + xi18n.Text(i18n.CascadeDepthParamUsageTemplData{}), defaultDepth, flagSet..., ), @@ -39,7 +39,7 @@ func (f *DepthParameterSet) BindAll( parent.BindBool( resolveNewFlagInfo( - xi18n.Text(i18n.DepthSkimParamUsageTemplData{}), + xi18n.Text(i18n.CascadeSkimParamUsageTemplData{}), defaultSkim, flagSet..., ),