Skip to content

Add a config for default behaviour #156

@ondrejfuhrer

Description

@ondrejfuhrer

As a user I would like to set a default behaviour to brew cu command. As an example I might wan't to always run it with --all option.

Desired flow:

> brew cu
==> Options
Include auto-update (-a): false
Include latest (-f): false

Config change

> brew cu config set auto-update true
Option "auto-update" has been set to "true" by default.
> brew cu
==> Options
Include auto-update (-a): true
Include latest (-f): false

Options overview:

  • brew cu config set KEY VALUE - sets a certain value to the key
  • brew cu config reset KEY - resets certain key to a default state
  • brew cu config reset - resets all keys to a default state
  • brew cu config list - prints all configs
  • brew cu --ignore-config - running brew cu command in a default state (as there are no configs set)

Available keys:

  • auto-update - if auto-update apps should be updated
  • latest - if "latest" apps should be updated
  • interactive - always run the upgrade as interactive
  • force-yes - always update all the apps (no interaction needed)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions