summaryrefslogtreecommitdiff
path: root/dotbot/cli.py
Commit message (Collapse)AuthorAge
* Add a dry run mode.Anton Khirnov2020-11-15
|
* Tweak log levels.Anton Khirnov2020-11-15
| | | | | Use info for changes performed (e.g. changes to the filesystem, code executed). Use verbose for "nothing to do" messages.
* Add `--force-color` optionBob Whitelock2020-08-23
| | | | | | | | | | | | | | | | | | | This forces Dotbot to produce colored output, regardless of whether it is outputting to a TTY. This is useful to support use cases such as piping colored Dotbot output into another program for formatting (e.g. I want to indent the output as part of a larger installation script); this was not previously easy to do as this would cause the output to lose its colored formatting. This option cannot be provided at the same time as the existing `--no-color` option, as there's no logical interpretation of what effect providing both of these should have. As part of this change I've refactored some existing code determining whether output should be colored to where options are parsed, as this made this change simpler and I think it makes sense for all this logic to be performed in the same place.
* Make error for empty config a little friendlierAnish Athalye2020-06-25
| | | | | | | | | | | | | | | In the setup guide in the README, we have people start out with an empty file (created using `touch`). Before this patch, Dotbot gave the following error: Configuration file must be a list of tasks Instead, with this patch, Dotbot says: Configuration file is empty, no work to do This change was prompted by https://github.com/anishathalye/dotbot/pull/226.
* Add --only and --except command-line argumentsAnish Athalye2020-03-26
| | | | | | Internal to Dotbot, we use the name "skip" instead of "except", because the latter is a keyword, and using a name like "except_" didn't seem as nice.
* Add tests for canonicalize-pathAnish Athalye2020-01-03
|
* Add 'create' directive to create directoriesJesse Leite2019-10-12
|
* Add option --no-color to suppress colorization of outputPhilip Hallstrom2018-10-06
| | | | | | By default, if output is a TTY, dotbot will colorize the output. This patch adds the option to pass `--no-color` to dotbot to have it suppress this colorization.
* Include built-in plugins in PyPI distributionAnish Athalye2018-06-11
|
* Add PyPI packageAnish Athalye2018-05-30
| | | | | This patch also makes the '-d' argument optional, with the base directory defaulting to the directory of the configuration file.
* Fix handling of base directoryAnish Athalye2018-05-24
| | | | | | | | Prior to this patch, Dotbot was relying on running with the base directory being the current working directory. In practice, it was relying on the install shim to set up this context. It makes more sense sense to actually execute `chdir()` within Dotbot itself, rather than relying on the install shim to do so.
* Add plugin loaderCasey Rodarmor2016-02-06
|
* Improve error message for malformed filesAnish Athalye2015-04-26
| | | | | This patch makes Dotbot warn the user and gracefully exit when the configuration file is not a list.
* Fix styleAnish Athalye2015-04-24
| | | | Fix formatting of keyword arguments according to PEP 8.
* Add keyboard interrupt handlerAnish Athalye2014-07-19
|
* Initial commitAnish Athalye2014-03-20