Fix "dagger new --name"
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
parent
f3182aa12f
commit
47b16a1d1b
@ -65,7 +65,7 @@ var newCmd = &cobra.Command{
|
|||||||
func getNewDeploymentName(ctx context.Context) string {
|
func getNewDeploymentName(ctx context.Context) string {
|
||||||
lg := log.Ctx(ctx)
|
lg := log.Ctx(ctx)
|
||||||
|
|
||||||
deploymentName := viper.GetString("deployment")
|
deploymentName := viper.GetString("name")
|
||||||
if deploymentName != "" {
|
if deploymentName != "" {
|
||||||
return deploymentName
|
return deploymentName
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user