| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Was calling a non-existing function when trying to read from the
cache.
|
|
|
|
|
|
|
|
|
|
| |
Getting the list of targets can be extremely slow. Since the targets
don't change often, we can cache them. The first call will be slow,
however all further call will be extremely fast, since we read from a
file.
We rely on the modified time of the BUILD file to decide that our
cache is out of date.
|
|
|
|
|
|
|
|
| |
Update the example with better usage of `use-package`.
Add new variable for the path to `buildifier`.
Add the command for running `buildifier` on the current BUILD file.
|
|
|
|
|
|
|
|
| |
The BUILD file can be formatted using `buildifier'. Add configurations
and a command to support this functionality.
The rewrite of the BUILD file is silent if the command runs
successfully. If there's an error, we display it in a compilation buffer.
|
|
|
|
| |
The new name for that argument to `pants` is `--pants-config-files`.
|
|
|
|
| |
For BUILD file, the indentation is set to 4.
|
| |
|
| |
|
|
|
|
|
| |
Instead of deleting the window, we want to restore the previous
one, so we don't mess with the layout.
|
|
|
|
|
|
|
|
|
|
|
| |
When getting the list of targets, or running an action, the value for
the default directory should not be changed. Until now, if you were to
open a file, then get the list of targets, then open a new file,
you'll be prompted for a new file with a starting directory set by the
value of `pants--get-source-tree`.
We now set a value for `default-directory` as a local variable when
running an action.
|
|
|
|
|
|
|
| |
I want to be able to bury the compilation buffer if the compilation
was successfully. Previously, it stayed open, but now it seems to
close. I'll have to check if the `delete-windows` is doing the right
thing, though.
|
|
|
|
|
|
| |
'ido' is available in Emacs since version 22.x. By having it as the
default, the library can be used right away without having to install
an extra dependency.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The purpose of this function is to present a list of choices to the end
user. It should not worry about getting the list of targets, but instead
let the caller pass it, as we do for the prompt.
We now have a new function to fetch the targets from the BUILD file.
The various interactive functions have now a smaller footprint, and most
just need to call the `pants--complete-read' function with a prompt, a
list of choices, and an action.
|
|
|
|
|
|
|
|
|
| |
Each command has a different meaning, and the user needs to have a
different prompt to know what she is running.
The function `pants--build-target-list` is renamed to
`pants--complete-read`, which is a better name to represent what the
function is actually doing.
|
|
|
|
|
| |
When the completion system was set to `ido', the user was prompted which
target to use, but nothing would be executed.
|
| |
|
|
|
|
| |
This is the function to use to report errors to the user.
|
| |
|
|
|
|
|
| |
Add the missing entries for Author, URL and a small commentary about
what the library is about.
|
| |
|
| |
|
|
|
|
|
|
| |
A user can specify which completion system he wants to use. If the
system is installed, we use it, otherwise we return an error to the
user, asking her to install it.
|
|
|
|
| |
We want to be able to support other systems, like `ivy` `helm` or `ido`.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This function runs the 'fmt' command to autoformat the source
files. This only works for Python.
|
|
|
|
|
|
| |
ivy[1] is lighter than helm and has a nicer API.
[1] http://oremacs.com/swiper/
|
| |
|
| |
|
|
|
|
|
|
|
| |
This option is set to "" by default. It can be used to specify any extra
option that will be used with every call to pants (for example: -q).
Closes #4.
|
|
|
|
|
| |
When listing the options, pass the `-q' flag to pants to silent any
warnings.
|
|
|
|
|
| |
This is the first working version of the front-end to the `pants`
command.
|
| |
|
|
|