MCPcopy Create free account
hub / github.com/ddev/ddev / buildFullCommandPath

Function buildFullCommandPath

cmd/ddev/cmd/aliases.go:68–70  ·  view source on GitHub ↗

buildFullCommandPath constructs the full command path using the alias, excluding the program name

(cmd *cobra.Command, alias string)

Source from the content-addressed store, hash-verified

66
67// buildFullCommandPath constructs the full command path using the alias, excluding the program name
68func buildFullCommandPath(cmd *cobra.Command, alias string) string {
69 return trimProgramName(cmd.Parent().CommandPath()) + " " + alias
70}
71
72// trimProgramName removes the program name from the command path
73func trimProgramName(commandPath string) string {

Callers 1

collectAliasesFunction · 0.85

Calls 2

trimProgramNameFunction · 0.85
CommandPathMethod · 0.80

Tested by

no test coverage detected