Attachment

The gpp att command group manages attachment downloading and listing.

Use it to interact with attachments in the GPP database.

gpp att

 gpp att Usage: gpp att [OPTIONS] COMMAND [ARGS]... Manage attachments. ╭─ Options ────────────────────────────────────────────────────────────────────╮ --helpShow this message and exit. ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────╮ downloadDownload an attachment by ID.                                      update  Update an attachment by ID.                                        delete  Delete an attachment by ID.                                        upload  Upload an attachment to a program.                                 list    List attachments by observation or program (exactly one identifier required).                                                         ╰──────────────────────────────────────────────────────────────────────────────╯

gpp att download

 gpp att download Usage: gpp att download [OPTIONS] ATTACHMENT_ID Download an attachment by ID. ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ *attachment_idTEXTAttachment ID.[required] ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ --save-toDIRECTORYDestination directory for the download         (default: ~/).                                 --overwriteOverwrite the file if it already exists. --helpShow this message and exit. ╰──────────────────────────────────────────────────────────────────────────────╯

gpp att update

 gpp att update Usage: gpp att update [OPTIONS] ATTACHMENT_ID Update an attachment by ID. ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ *attachment_idTEXTAttachment ID.[required] ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ *--file-nameTEXTFile name for the attachment.[required] *--file-pathFILEPath to the new file content for the           attachment.                                    [required]                                     --descriptionTEXTNew description for the attachment. --helpShow this message and exit. ╰──────────────────────────────────────────────────────────────────────────────╯

gpp att delete

 gpp att delete Usage: gpp att delete [OPTIONS] ATTACHMENT_ID Delete an attachment by ID. ╭─ Arguments ──────────────────────────────────────────────────────────────────╮ *attachment_idTEXTAttachment ID.[required] ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────╮ --helpShow this message and exit. ╰──────────────────────────────────────────────────────────────────────────────╯

gpp att upload

 gpp att upload Usage: gpp att upload [OPTIONS] Upload an attachment to a program. ╭─ Options ────────────────────────────────────────────────────────────────────╮ *--file-pathFILE                   Path to the file        content for the         attachment.             [required]              *--program-idTEXT                   Program ID.[required] *--attachment-type[SCIENCE|TEAM|FINDER|MOAttachment type. S_MASK|PRE_IMAGING|CUST[required]       OM_SED] *--file-nameTEXT                   File name for the       attachment.             [required]              --descriptionTEXT                   Description for the     attachment.             --helpShow this message and   exit.                   ╰──────────────────────────────────────────────────────────────────────────────╯

gpp att list

 gpp att list Usage: gpp att list [OPTIONS] List attachments by observation or program (exactly one identifier required). ╭─ Options ────────────────────────────────────────────────────────────────────╮ --observation-idTEXTObservation ID. --observation-referenceTEXTObservation reference. --program-idTEXTProgram ID. --program-referenceTEXTProgram reference. --proposal-referenceTEXTProposal reference. --helpShow this message and exit. ╰──────────────────────────────────────────────────────────────────────────────╯