You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"target", "t", "", `The path to the folder in which the MTAR file is created; the path to the "mta_archives" subfolder of the current folder is set as default`)
Copy file name to clipboardExpand all lines: cmd/init.go
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -18,13 +18,15 @@ const (
18
18
19
19
// flags of init command
20
20
varinitCmdSrcstring
21
+
varinitCmdMtaYamlFilenamestring
21
22
varinitCmdTrgstring
22
23
varinitCmdExtensions []string
23
24
varinitCmdModestring
24
25
25
26
// flags of build command
26
27
varmbtCmdCLIstring
27
28
varbuildCmdSrcstring
29
+
varbuildCmdMtaYamlFilenamestring
28
30
varbuildCmdTrgstring
29
31
varbuildCmdExtensions []string
30
32
varbuildCmdMtar="*"
@@ -39,6 +41,7 @@ var buildCmdSBomFilePath string
39
41
funcinit() {
40
42
// set flags for init command
41
43
initCmd.Flags().StringVarP(&initCmdSrc, "source", "s", "", "The path to the MTA project; the current path is set as default")
44
+
initCmd.Flags().StringVarP(&initCmdMtaYamlFilename, "filename", "f", "", "The mta yaml filename of the MTA project; the mta.yaml is set as default")
42
45
initCmd.Flags().StringVarP(&initCmdTrg, "target", "t", "", "The path to the folder in which the Makefile is generated; the current path is set as default")
43
46
initCmd.Flags().StringSliceVarP(&initCmdExtensions, "extensions", "e", nil, "The MTA extension descriptors")
44
47
initCmd.Flags().StringVarP(&initCmdMode, "mode", "m", "", `The mode of the Makefile generation; supported values: "default" and "verbose"`)
@@ -47,6 +50,7 @@ func init() {
47
50
48
51
// set flags of build command
49
52
buildCmd.Flags().StringVarP(&buildCmdSrc, "source", "s", "", "The path to the MTA project; the current path is set as default")
53
+
buildCmd.Flags().StringVarP(&buildCmdMtaYamlFilename, "filename", "f", "", "The mta yaml filename of the MTA project; the mta.yaml is set as default")
50
54
buildCmd.Flags().StringVarP(&buildCmdTrg, "target", "t", "", `The path to the folder in which the MTAR file is created; the path to the "mta_archives" subfolder of the current folder is set as default`)
51
55
buildCmd.Flags().StringSliceVarP(&buildCmdExtensions, "extensions", "e", nil, "The MTA extension descriptors")
52
56
buildCmd.Flags().StringVarP(&buildCmdMtar, "mtar", "", "", "The file name of the generated archive file")
// However, in some environments we might want to always use the default mbt from the path. This can be set by using environment variable MBT_USE_DEFAULT.
// Note: we can only use the non-default mbt (i.e. the current executable name) from inside the command itself because if this function runs from other places like tests it won't point to the MBT
"The path to the folder in which the module build results are created; the <source folder>/.<project name>_mta_build_tmp/<module name> path is set as default")
"The path to the folder in which the module build results are created; the <current folder>/.<project name>_mta_build_tmp/<module name> path is set as default")
0 commit comments