Skip to content

Commit d95bd20

Browse files
committed
Add some output when adding vsixs
If the download or extraction takes a while it can make it seem like the command got stuck trying to start, so maybe this helps.
1 parent 50a7869 commit d95bd20

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cli/add.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ func add() *cobra.Command {
7474
return err
7575
}
7676
for _, file := range files {
77-
s, err := doAdd(ctx, filepath.Join(args[0], file.Name()), store)
77+
vsixPath := filepath.Join(args[0], file.Name())
78+
_, _ = fmt.Fprintf(cmd.OutOrStdout(), "Adding %s...\r\n", vsixPath)
79+
s, err := doAdd(ctx, vsixPath, store)
7880
if err != nil {
7981
failed = append(failed, file.Name())
8082
summary = append(summary, fmt.Sprintf("Failed to unpack %s: %s", file.Name(), err.Error()))
@@ -83,6 +85,7 @@ func add() *cobra.Command {
8385
}
8486
}
8587
} else {
88+
_, _ = fmt.Fprintf(cmd.OutOrStdout(), "Adding %s...\r\n", args[0])
8689
summary, err = doAdd(ctx, args[0], store)
8790
if err != nil {
8891
return err

0 commit comments

Comments
 (0)