You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
office-addin-manifest modify: allow --guid with optional value, --displayName with required value
If an option is provided with an optional value, commander specifies the option as a boolean.
To help with this, I've added the function getCommandOptionString(option: string | boolean): string | undefined.
I updated the options so that --guid take an optional value, while --displayName requires a value to be provided.
This command line will change the guid in the manifest to a random value:
office-addin-manifest modify manifest.xml --guid
The special value "random" will also do this:
office-addin-manifest modify manifest.xml --guid random
As will an empty value:
office-addin-manifest modify manifest.xml --guid ""
If a value is provided, it will be used.
office-addin-manifest modify manifest.xml --guid 978d16a5-08b0-4ab3-a27c-816c89189fd6
assert.equal(result,`Unable to modify xml data for manifest file: ${invalidManifest}. \nError: ENOENT: no such file or directory, open '${invalidManifest}'`);
111
+
assert.strictEqual(result,`Unable to modify xml data for manifest file: ${invalidManifest}. \nError: ENOENT: no such file or directory, open '${invalidManifest}'`);
0 commit comments