@affonso/cli 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -868,7 +868,7 @@ function registerProgramCommands(program2) {
|
|
|
868
868
|
handleError(err, o.json);
|
|
869
869
|
}
|
|
870
870
|
});
|
|
871
|
-
prog.command("update").description("Update program settings").option("--name <name>", "Program name").option("--tagline <text>", "Tagline").option("--category <cat>", "Category").option("--description <text>", "Description").option("--website-url <url>", "Website URL").option("--logo-url <url>", "Logo URL").option("--
|
|
871
|
+
prog.command("update").description("Update program settings").option("--name <name>", "Program name").option("--tagline <text>", "Tagline").option("--category <cat>", "Category").option("--description <text>", "Description").option("--website-url <url>", "Website URL").option("--logo-url <url>", "Logo URL").option("--access-mode <mode>", "Access mode: PUBLIC, PRIVATE, or INVITE").option("--affiliate-links-enabled", "Enable affiliate links").option("--no-affiliate-links-enabled", "Disable affiliate links").action(async function() {
|
|
872
872
|
const o = opts(this);
|
|
873
873
|
try {
|
|
874
874
|
const client = await getClient(o);
|
|
@@ -879,7 +879,7 @@ function registerProgramCommands(program2) {
|
|
|
879
879
|
if (o.description !== void 0) params.description = o.description;
|
|
880
880
|
if (o.websiteUrl !== void 0) params.website_url = o.websiteUrl;
|
|
881
881
|
if (o.logoUrl !== void 0) params.logo_url = o.logoUrl;
|
|
882
|
-
if (o.
|
|
882
|
+
if (o.accessMode !== void 0) params.access_mode = o.accessMode;
|
|
883
883
|
if (o.affiliateLinksEnabled !== void 0)
|
|
884
884
|
params.affiliate_links_enabled = o.affiliateLinksEnabled;
|
|
885
885
|
const result = await client.program.update(params);
|