Skip to content
This repository was archived by the owner on May 2, 2022. It is now read-only.

Feat: add silent mode #51

Closed
erezrokah opened this issue Sep 16, 2020 · 0 comments · Fixed by #52
Closed

Feat: add silent mode #51

erezrokah opened this issue Sep 16, 2020 · 0 comments · Fixed by #52
Assignees
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality

Comments

@erezrokah
Copy link
Contributor

Which problem is this feature request solving?

The CLI uses

async function uploadBundle(buf, info, deployId, apiToken) {
as a part of netlify/cli#1236, which prints a message to the log:
console.log("Bundle already exists. Skipping upload...");

That messes up the CLI logs, especially when running with the --json flag.

Describe the solution you'd like

Ability to pass a flag that prevents the plugin from printing log messages (any other configuration will do).

Describe alternatives you've considered

  • Patch console.log implementation before calling upload, restoring after.
  • Handle uploading in the CLI

Can you submit a pull request?

Yes

@erezrokah erezrokah added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Sep 16, 2020
@mraerino mraerino self-assigned this Sep 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants