diff --git a/README.md b/README.md index 689fb04e..a4123dc7 100644 --- a/README.md +++ b/README.md @@ -1318,9 +1318,11 @@ Next time you need this list just use an alias, like this: * Valid keys: - `aggregate`: [list(dict)] Add components from other projects. * Valid keys: + - *board_qty*: Alias for number. - `file`: [string=''] Name of the XML to aggregate. - `number`: [number=100] Number of boards to build (components multiplier). - `variant`: [string=' '] Variant for this project. + - *board_qty*: Alias for number. - `currency`: [string|list(string)=USD] Currency priority. Use ISO4217 codes (i.e. USD, EUR). - `distributors`: [string|list(string)] Include this distributors list. Default is all the available. - `dnf_filter`: [string|list(string)='_none'] Name of the filter to mark components as not fitted. diff --git a/docs/samples/generic_plot.kibot.yaml b/docs/samples/generic_plot.kibot.yaml index ff5fefc0..02a1587a 100644 --- a/docs/samples/generic_plot.kibot.yaml +++ b/docs/samples/generic_plot.kibot.yaml @@ -765,12 +765,14 @@ outputs: options: # [list(dict)] Add components from other projects aggregate: + # `board_qty` is an alias for `number` # [string=''] Name of the XML to aggregate - file: '' # [number=100] Number of boards to build (components multiplier) number: 100 # [string=' '] Variant for this project variant: ' ' + # `board_qty` is an alias for `number` # [string|list(string)=USD] Currency priority. Use ISO4217 codes (i.e. USD, EUR) currency: USD # [string|list(string)] Include this distributors list. Default is all the available diff --git a/kibot/out_kicost.py b/kibot/out_kicost.py index ecc2b497..417514d6 100644 --- a/kibot/out_kicost.py +++ b/kibot/out_kicost.py @@ -29,6 +29,8 @@ class Aggregate(Optionable): """ Variant for this project """ self.number = 100 """ Number of boards to build (components multiplier) """ + self.board_qty = None + """ {number} """ def config(self, parent): super().config(parent) @@ -70,6 +72,8 @@ class KiCostOptions(VariantOptions): """ [list(dict)] Add components from other projects """ self.number = 100 """ Number of boards to build (components multiplier) """ + self.board_qty = None + """ {number} """ super().__init__() self.add_to_doc('variant', WARNING_MIX)