kunalabs-io/sui-client-gen

Generated code is removed and re-written on a new generator run

Closed this issue · 3 comments

In contrary to your remarks here:

- When re-running the generator, the files generated on previous run will *not* be automatically deleted in order to avoid accidental data wipes. The old files can either be deleted manually before re-running the tool (it's safe to delete everything aside from `gen.toml`) or by running the generator with `--clean` (use with caution).

my edited code gets wiped and re-written.
Did this change?

kklas commented

This did not change, you're probably editing generated files that get overwriten on subsequent runs.

"When re-running the generator, the files generated on previous run will not be automatically deleted in order to avoid accidental data wipes. "

Think I understand what you mean now by using the tool. But that's not what I interpreted here.

kklas commented

This is here because sometimes when you change the packages in the config, some of the old code could remain.