Skip to content

spacetime dev does not pass --yes option to generate command, causing it to get stuck if prompted to remove files #4067

@NiciusB

Description

@NiciusB

I'm running the following command: spacetime dev --yes mydevdb

When removing a reducer, it still waits for confirmation to remove even though I set the --yes flag:

File change detected, rebuilding...
Updating .env.local with database name mydevdb...
Building...
Build complete!
Generating module bindings...
Build finished successfully.
The following files were not generated by this command and will be deleted:
  ./src/module_bindings/say_hello_reducer.ts
  ./src/module_bindings/say_hello_type.ts
Are you sure you want to delete these files? [y/N]

I took a quick look at the code and it seems like it should be as easy as passing the --yes flag here:

let generate_args = generate::cli().get_matches_from(vec![

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions