Skip to content

Commit 9d82e38

Browse files
mayoalexanderclaude
andcommitted
feat(programs): iris programs update --image-url / --icon (set program cover)
The update command exposed name/description/tier/active but not the cover image, even though ProgramEnrollmentController::updateProgram accepts image_url + icon. Used to set the Song Wars III (#57) cover to an IG-imported flyer. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
1 parent de68ce1 commit 9d82e38

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎packages/opencode/src/cli/cmd/platform-programs.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ const UpdateCommand = cmd({
224224
.option("name", { describe: "new name", type: "string" })
225225
.option("description", { describe: "new description", type: "string" })
226226
.option("tier", { describe: "new tier", type: "string" })
227+
.option("image-url", { describe: "cover image URL", type: "string" })
228+
.option("icon", { describe: "icon URL", type: "string" })
227229
.option("active", { describe: "active (true/false)", type: "boolean" }),
228230
async handler(args) {
229231
UI.empty()
@@ -236,10 +238,12 @@ const UpdateCommand = cmd({
236238
if (args.name) payload.name = args.name
237239
if (args.description) payload.description = args.description
238240
if (args.tier) payload.tier = args.tier
241+
if (args["image-url"]) payload.image_url = args["image-url"]
242+
if (args.icon) payload.icon = args.icon
239243
if (args.active !== undefined) payload.active = args.active
240244

241245
if (Object.keys(payload).length === 0) {
242-
prompts.log.warn("Nothing to update. Use --name, --description, --tier, or --active")
246+
prompts.log.warn("Nothing to update. Use --name, --description, --tier, --image-url, --icon, or --active")
243247
prompts.outro("Done")
244248
return
245249
}

0 commit comments

Comments
 (0)