Skip to content

Commit 7d45b25

Browse files
feat(cli): add --output alias for --out
1 parent cac650b commit 7d45b25

7 files changed

Lines changed: 8 additions & 8 deletions

File tree

internal/cmd/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func (c *AuthTokensDeleteCmd) Run(ctx context.Context, flags *RootFlags) error {
144144

145145
type AuthTokensExportCmd struct {
146146
Email string `arg:"" name:"email" help:"Email"`
147-
OutPath string `name:"out" help:"Output file path (required)"`
147+
OutPath string `name:"out" aliases:"output" help:"Output file path (required)"`
148148
Overwrite bool `name:"overwrite" help:"Overwrite output file if it exists"`
149149
}
150150

internal/cmd/docs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type DocsCmd struct {
2424

2525
type DocsExportCmd struct {
2626
DocID string `arg:"" name:"docId" help:"Doc ID"`
27-
Out string `name:"out" help:"Output file path (default: gogcli config dir)"`
27+
Out string `name:"out" aliases:"output" help:"Output file path (default: gogcli config dir)"`
2828
Format string `name:"format" help:"Export format: pdf|docx|txt" default:"pdf"`
2929
}
3030

internal/cmd/drive.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ func (c *DriveGetCmd) Run(ctx context.Context, flags *RootFlags) error {
246246

247247
type DriveDownloadCmd struct {
248248
FileID string `arg:"" name:"fileId" help:"File ID"`
249-
Out string `name:"out" help:"Output file path (default: gogcli config dir)"`
249+
Out string `name:"out" aliases:"output" help:"Output file path (default: gogcli config dir)"`
250250
Format string `name:"format" help:"Export format for Google Docs files: pdf|csv|xlsx|pptx|txt|png|docx (default: auto)"`
251251
}
252252

internal/cmd/gmail_attachment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
type GmailAttachmentCmd struct {
2020
MessageID string `arg:"" name:"messageId" help:"Message ID"`
2121
AttachmentID string `arg:"" name:"attachmentId" help:"Attachment ID"`
22-
Out string `name:"out" help:"Write to a specific path (default: gogcli config dir)"`
22+
Out string `name:"out" aliases:"output" help:"Write to a specific path (default: gogcli config dir)"`
2323
Name string `name:"name" help:"Filename (only used when --out is empty)"`
2424
}
2525

internal/cmd/gmail_thread.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ type GmailThreadCmd struct {
4949
type GmailThreadGetCmd struct {
5050
ThreadID string `arg:"" name:"threadId" help:"Thread ID"`
5151
Download bool `name:"download" help:"Download attachments"`
52-
OutDir string `name:"out-dir" help:"Directory to write attachments to (default: current directory)"`
52+
OutDir string `name:"out-dir" aliases:"output-dir" help:"Directory to write attachments to (default: current directory)"`
5353
}
5454

5555
func (c *GmailThreadGetCmd) Run(ctx context.Context, flags *RootFlags) error {
@@ -250,7 +250,7 @@ func (c *GmailThreadModifyCmd) Run(ctx context.Context, flags *RootFlags) error
250250
type GmailThreadAttachmentsCmd struct {
251251
ThreadID string `arg:"" name:"threadId" help:"Thread ID"`
252252
Download bool `name:"download" help:"Download all attachments"`
253-
OutDir string `name:"out-dir" help:"Directory to write attachments to (default: current directory)"`
253+
OutDir string `name:"out-dir" aliases:"output-dir" help:"Directory to write attachments to (default: current directory)"`
254254
}
255255

256256
func (c *GmailThreadAttachmentsCmd) Run(ctx context.Context, flags *RootFlags) error {

internal/cmd/sheets.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type SheetsCmd struct {
3636

3737
type SheetsExportCmd struct {
3838
SpreadsheetID string `arg:"" name:"spreadsheetId" help:"Spreadsheet ID"`
39-
Out string `name:"out" help:"Output file path (default: gogcli config dir)"`
39+
Out string `name:"out" aliases:"output" help:"Output file path (default: gogcli config dir)"`
4040
Format string `name:"format" help:"Export format: pdf|xlsx|csv" default:"xlsx"`
4141
}
4242

internal/cmd/slides.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type SlidesCmd struct {
2121

2222
type SlidesExportCmd struct {
2323
PresentationID string `arg:"" name:"presentationId" help:"Presentation ID"`
24-
Out string `name:"out" help:"Output file path (default: gogcli config dir)"`
24+
Out string `name:"out" aliases:"output" help:"Output file path (default: gogcli config dir)"`
2525
Format string `name:"format" help:"Export format: pdf|pptx" default:"pptx"`
2626
}
2727

0 commit comments

Comments
 (0)