@@ -19,11 +19,6 @@ install the dependenciesfrom it.`,
19
19
RunE : func (cmd * cobra.Command , args []string ) error {
20
20
cmd .SilenceUsage = true
21
21
22
- deleteOldEnvFlag , err := cmd .Flags ().GetBool ("new-environment" )
23
- if err != nil {
24
- return err
25
- }
26
-
27
22
requirementsFileFlag , err := cmd .Flags ().GetString ("requirements-file" )
28
23
if err != nil {
29
24
return err
@@ -41,7 +36,7 @@ install the dependenciesfrom it.`,
41
36
}
42
37
43
38
printProgress ("Ensuring virtual environment..." )
44
- err = script .EnsureEnv (deleteOldEnvFlag )
39
+ err = script .EnsureEnv (true )
45
40
if err != nil {
46
41
return err
47
42
}
@@ -64,9 +59,6 @@ func init() {
64
59
rootCmd .AddCommand (initCmd )
65
60
initCmd .Flags ().StringP ("requirements-file" , "r" , "" ,
66
61
`use specified requirements file. If not provided, it
67
- will try to guess the requirements file name:
68
- requirements_<script_name>.txt, <script_name>_requirements.txt or
69
- requirements.txt` )
70
- initCmd .Flags ().BoolP ("new-environment" , "n" , false , "create a new virtual environment even if it already exists" )
62
+ will use requirements.txt` )
71
63
initCmd .Flags ().StringP ("python" , "p" , "" , "use specified Python interpreter" )
72
64
}
0 commit comments