microsoft / process-migrator

Process migrator node.js utility for VSTS inherited process
MIT License
98 stars 53 forks source link

Documentation Incorrect: No Config Created #84

Open MrHinsh opened 1 year ago

MrHinsh commented 1 year ago

Just run process-migrator without any argument will create the file if it does not exist.

This is not the case.. it just errors out.

MOlausson commented 1 year ago

Hey @MrHinsh, can you share a bit more context. For me it does create the template file just fine (tested on Codespace and Windows).

MrHinsh commented 1 year ago

If I install the tool and then just run it from the command prompt with no argument I get:

[ERROR] [2023-08-15T09:21:22.011Z] [Configuration validation] Missing or invalid source account url: 'Required in 'export'/'migrate' mode, source account url.'.

image

MrHinsh commented 1 year ago

OK, so there was an old configuration.json in that folder.

Perhaps if it finds a config it should say "Loading config: C:\Users\MartinHinshelwood(He\configuration.json" so that it is more obvious that it is indeed finding a config, but that its format is not valid.

MOlausson commented 1 year ago

I agree that the documentation (and error handling) can be improved. The team will be maintaining the tool more actively going forward so will make sure it gets prioritized.