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
Copy file name to clipboardExpand all lines: cli/cmd/project_import.go
+14-4Lines changed: 14 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -16,15 +16,17 @@ import (
16
16
)
17
17
18
18
typeprojectImportArgsstruct {
19
-
dirstring
20
-
filestring
19
+
dirstring
20
+
filestring
21
+
projectNamestring
21
22
}
22
23
23
24
vartargetProjectImportArgsprojectImportArgs
24
25
25
26
funcinit() {
26
27
projectImportCmd.PersistentFlags().StringVar(&targetProjectImportArgs.dir, "dir", "", "Directory path with project backups to import")
27
28
projectImportCmd.PersistentFlags().StringVar(&targetProjectImportArgs.file, "file", "", "Backup file path to import")
29
+
projectImportCmd.PersistentFlags().StringVar(&targetProjectImportArgs.projectName, "project-name", "", "Override project name (only valid with --file)")
28
30
projectCmd.AddCommand(projectImportCmd)
29
31
}
30
32
@@ -44,6 +46,11 @@ var projectImportCmd = &cobra.Command{
0 commit comments