Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ActionCmd = &cobra.Command{
Use: "action",
Short: "Manage Action Overrides ",
}
View Source
var FieldCmd = &cobra.Command{ Use: "fields", Short: "Manage object field metadata", DisableFlagsInUseLine: true, }
View Source
var FieldSetCmd = &cobra.Command{ Use: "fieldset", Short: "Manage object field set metadata", DisableFlagsInUseLine: true, }
View Source
var FormFactorIds = map[FormFactor][]string{ NoneFormFactor: {"None"}, Large: {"Large"}, Small: {"Small"}, }
View Source
var IndexCmd = &cobra.Command{ Use: "index", Short: "Manage big object index metadata", DisableFlagsInUseLine: true, }
View Source
var RecordTypeCmd = &cobra.Command{ Use: "recordtype", Short: "Manage object record type metadata", DisableFlagsInUseLine: true, }
View Source
var TidyCmd = &cobra.Command{ Use: "tidy [flags] [filename]...", Short: "Tidy object metadata", Long: ` Tidy object metadata. The --fix-missing flag can be used to add missing object metadata. This includes: * picklist fields missing from Record Types `, Args: cobra.MinimumNArgs(1), RunE: func(cmd *cobra.Command, args []string) error { changes := false list, _ := cmd.Flags().GetBool("list") fixMissing, _ := cmd.Flags().GetBool("fix-missing") fix := fixes{ recordTypePicklistOptions: fixMissing, } for _, file := range args { _, err := repo.Metadata.Open(file) if err != nil { return fmt.Errorf("invalid file %s: %w", file, err) } } items := repo.Metadata.Items(objects.NAME) if len(items) == 0 { log.Warn("No objects to tidy") } for _, item := range items { o := item.(*objects.CustomObject) if list { needsTidying := checkIfChanged(o, fix) changes = needsTidying || changes } else { tidy(o, fix) } } if changes { os.Exit(1) } return nil }, }
View Source
var TypeIds = map[Type][]string{ NoneType: {"None"}, Default: {"Default"}, Flexipage: {"FlexiPage"}, LightningComponent: {"LightningComponent"}, Scontrol: {"Scontrol"}, Standard: {"Standard"}, Visualforce: {"Visualforce"}, }
View Source
var ValidationRuleCmd = &cobra.Command{ Use: "validationrule", Short: "Manage validation rule metadata", DisableFlagsInUseLine: true, }
View Source
var WebLinkCmd = &cobra.Command{ Use: "weblink", Short: "Manage object web link metadata", DisableFlagsInUseLine: true, }
Functions ¶
This section is empty.
Types ¶
type FormFactor ¶
const ( NoneFormFactor FormFactor = iota Large Small )
Click to show internal directories.
Click to hide internal directories.