-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tool): Add
--watch
flag for manifest update command
This commit adds a new `--watch` command option to the `GenerateManifestCommand` class. When this option is specified, the command will watch the vault for changes and automatically regenerate the manifest whenever a change is detected. The generated manifest will then be written to disk. The code changes include: - Added a new `Watch` property to the `GenerateManifestSettings` class. - Modified the validation logic in the `Validate()` method of the `GenerateManifestSettings` class to allow for watching even if force mode is not enabled. - Added logic in the `GenerateManifestCommand` class to handle watching for vault updates and regenerating the manifest accordingly. - Updated error handling in case an error occurs while regenerating or writing the manifest. These changes enhance the functionality of generating manifests by providing an automated way to keep them up-to-date with any changes made to the vault.
- Loading branch information
1 parent
cd06151
commit ab8fb33
Showing
1 changed file
with
62 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters