File tree Expand file tree Collapse file tree
pkg/devfile/parser/data/v2/common Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ func GetExecWorkingDir(dc v1.Command) string {
5050 return ""
5151}
5252
53- // GetApplyComponent returns the component of the exec command
53+ // GetApplyComponent returns the component of the apply command
5454func GetApplyComponent (dc v1.Command ) string {
5555 if dc .Apply != nil {
5656 return dc .Apply .Component
@@ -59,24 +59,6 @@ func GetApplyComponent(dc v1.Command) string {
5959 return ""
6060}
6161
62- //// GetApplyCommandLine returns the command line of the exec command
63- //func GetApplyCommandLine(dc v1.Command) string {
64- // if dc.Apply != nil {
65- // return dc.Apply
66- // }
67- //
68- // return ""
69- //}
70- //
71- //// GetExecWorkingDir returns the working dir of the exec command
72- //func GetExecWorkingDir(dc v1.Command) string {
73- // if dc.Exec != nil {
74- // return dc.Exec.WorkingDir
75- // }
76- //
77- // return ""
78- //}
79-
8062// GetCommandType returns the command type of a given command
8163func GetCommandType (command v1.Command ) (v1.CommandType , error ) {
8264 switch {
You can’t perform that action at this time.
0 commit comments