Help us shape the future of Go! Take the 2026 Go Developer Survey

application

package
v0.68.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ActionCmd = &cobra.Command{
	Use:   "action",
	Short: "Manage Profile Action Overrides ",
}
View Source
var ActionIds = map[Action][]string{
	NoneAction: {"None"},
	View:       {"View"},
	Tab:        {"Tab"},
}
View Source
var FormFactorIds = map[FormFactor][]string{
	NoneFormFactor: {"None"},
	Large:          {"Large"},
	Small:          {"Small"},
}
View Source
var TabCmd = &cobra.Command{
	Use:   "tab",
	Short: "Manage tabs",
}
View Source
var TidyCmd = &cobra.Command{
	Use:   "tidy [filename]...",
	Short: "Tidy custom application",
	Long: `
Tidy custom application metadata.

	The --wide and --ignore-errors flags can be used to help manage
	CustomApplication metadata stored in a git repository.

	Configure clean and smudge git filters to use force-md:
	$ git config --local filter.salesforce-application.clean 'force-md application tidy --wide --ignore-errors -'
	$ git config --local filter.salesforce-application.smudge 'force-md application tidy --ignore-errors -'

	Update .gitattributes to use the salesforce-application filter:
	*.app-meta.xml filter=salesforce-application

	The --wide flag will cause the CustomApplication metadata to be stored in a
	flattened format that makes it easier to resolve merge conflicts.  If a child
	of a profileActionOverrides element changes, for example, the entire
	profileActionOverrides element will show up as changed because it's stored on a single line.

	The smudge filter will cause the metadata to be unflattened so it's available
	in the normal "long" format in the working copy.

`,
	Args:                  cobra.MinimumNArgs(1),
	DisableFlagsInUseLine: true,
	Run: func(cmd *cobra.Command, args []string) {
		for _, file := range args {
			tidy(file)
		}
	},
}

Functions

This section is empty.

Types

type Action

type Action enumflag.Flag
const (
	NoneAction Action = iota
	View
	Tab
)

type FormFactor

type FormFactor enumflag.Flag
const (
	NoneFormFactor FormFactor = iota
	Large
	Small
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL