Closed waldekmastykarz closed 1 year ago
I've updated the base Command structure and other base classes, updated the CLI runtime to use the new structure and updated 3 commands (aad app add, spo site list and spo site get) to see how it would look like: https://github.com/pnp/cli-microsoft365/compare/main...waldekmastykarz:command-refactoring
We're at 100% coverage again. Next step is for me to sync the latest changes that have been added to the CLI over the last few weeks.
Respect for the speed with which you've implemented this @waldekmastykarz! 👏
All ready, rebased with latest changes from main. Will submit a PR and merge in a couple of days.
Well done @waldekmastykarz!
Refactor command configuration so that we can have a central place for configuring validation, options, telemetry, etc.
Update commands:
OK, to make things more tangible, what if we had something like this:
I haven't included everything in the example above (types, option sets, aliases, default properties, processing options), but I hope the example gives a clearer idea of the possible direction we could take. Features missing from this example would be basically 'more of the same' (array with functions that the runtime would execute).
Originally posted by @waldekmastykarz in https://github.com/pnp/cli-microsoft365/issues/3218#issuecomment-1154815279