Skip to content

Commit 0b40229

Browse files
Walzpierrelalanne
authored andcommitted
feat(cli): Add alias -f for --export-format
1 parent fd8b8f2 commit 0b40229

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

cmd/src-fingerprint/main.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,10 @@ func main() {
111111
Usage: "set output path to `FILE`. stdout by default",
112112
},
113113
&cli.StringFlag{
114-
Name: "export-format",
115-
Value: "jsonl",
116-
Usage: "export format: 'jsonl'/'gzip-jsonl'/'json'/'gzip-json'. 'jsonl' by default",
114+
Name: "export-format",
115+
Aliases: []string{"f"},
116+
Value: "jsonl",
117+
Usage: "export format: 'jsonl'/'gzip-jsonl'/'json'/'gzip-json'. 'jsonl' by default",
117118
},
118119
&cli.StringFlag{
119120
Name: "clone-dir",

exporter/output.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func NewJSONExporter(output io.WriteCloser) Exporter {
2828
return &JSONExporter{
2929
elements: []*ExportGitFile{},
3030
encoder: json.NewEncoder(output),
31-
writer: output,
31+
writer: output,
3232
}
3333
}
3434

0 commit comments

Comments
 (0)