mirror of https://github.com/databricks/cli.git
This commit is contained in:
parent
c5497d39d6
commit
24506357dc
|
@ -30,7 +30,7 @@ func (m *delete) Apply(ctx context.Context, b *bundle.Bundle) ([]bundle.Mutator,
|
||||||
red := color.New(color.FgRed).SprintFunc()
|
red := color.New(color.FgRed).SprintFunc()
|
||||||
if !b.AutoApprove {
|
if !b.AutoApprove {
|
||||||
cmdio.LogString(ctx, fmt.Sprintf("\n%s and all files in it will be %s.", b.Config.Workspace.RootPath, red("deleted permanently!")))
|
cmdio.LogString(ctx, fmt.Sprintf("\n%s and all files in it will be %s.", b.Config.Workspace.RootPath, red("deleted permanently!")))
|
||||||
proceed, err := cmdio.Ask(ctx, "Proceed with deletion?: ")
|
proceed, err := cmdio.Ask(ctx, "Proceed with deletion? [y/n]: ")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ func (m *delete) Apply(ctx context.Context, b *bundle.Bundle) ([]bundle.Mutator,
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
cmdio.LogString(ctx, fmt.Sprintf("\n Deleted snapshot file at %s", sync.SnapshotPath()))
|
cmdio.LogString(ctx, fmt.Sprintf("\nDeleted snapshot file at %s", sync.SnapshotPath()))
|
||||||
cmdio.LogString(ctx, "Successfully deleted files!")
|
cmdio.LogString(ctx, "Successfully deleted files!")
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue