Skip to content

Commit 6e91da7

Browse files
committed
Cleanup
1 parent b1d977b commit 6e91da7

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

entrypoints/cli/cmd/noticeboards/download.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,22 @@ func initDownloadCommand() *cobra.Command {
2020
}
2121

2222
downloadCommand.Flags().IntVarP(&publicationID, "publication_id", "p", publicationID, "Publication ID to download the attachment from")
23-
// downloadCommand.Flags().IntVarP(&attachmentSequenceNumber, "sequence", "s", attachmentSequenceNumber, "Attachment sequence number")
2423
downloadCommand.Flags().StringVarP(&outputDir, "output-filename", "o", outputDir, "Output directory for the attachment(s)")
2524

2625
return &downloadCommand
2726
}
2827

2928
func runDownloadCommand(cmd *cobra.Command, args []string) error {
3029
if publicationID == 0 {
31-
return fmt.Errorf("pubblication_id is required")
30+
return fmt.Errorf("publication_id is required")
3231
}
33-
// if attachmentSequenceNumber == 0 {
34-
// return fmt.Errorf("sequence is required")
35-
// }
3632

3733
if outputDir == "" {
3834
outputDir = "."
3935
}
4036

4137
command := commands.DownloadNoticeboardAttachmentCommand{
42-
PublicationID: publicationID,
43-
// AttachmentSequenceNumber: attachmentSequenceNumber,
38+
PublicationID: publicationID,
4439
OutputBasePath: outputDir,
4540
}
4641

0 commit comments

Comments
 (0)