Commit Graph

20 Commits

Author SHA1 Message Date
David Diaz 23e9d5480c Improved prompt descriptions.
I was really naive with combining urls and paths. This should fix it.
2020-11-22 01:01:01 -06:00
David Díaz dafd4406c1
Schema should be validated on PR (#165) 2020-11-21 22:57:44 -06:00
David Díaz 849b823311
Update example (#163)
* Moving from inquirer to prompts.

It has a smaller dependency graph and we don't need the fancy features
inquirer has.

* Added a single better example to keep updated as I finalize the schema.
2020-11-21 21:59:03 -06:00
David Diaz a39f3b5977 Config files are now validated against the json schema. 2020-11-19 21:44:17 -06:00
Sergio Díaz 52e88a3703
This allows extra documents in a yaml config file to be embeded as hosts.(#40)
This allows extra documents in a yaml config file to be embeded as hosts.
2018-07-31 23:23:32 -06:00
David Diaz b6c5a0b01e Added beau-std as a direct dependency of Beau. 2018-06-19 11:29:41 -06:00
Sergio Díaz 248f4a9223
Added params as a flag to request. (#20)
This allows the use to inject arbitrary values to Beau's environment.
2018-05-06 18:26:19 -06:00
Sergio Díaz 56d536a509
Re-indented some files I was missing. (#19)
I think that's it.
2018-05-04 22:00:54 -06:00
Sergio Díaz 90761acaa4
Added a schema validator. (#13)
* Added a schema validator.

This allows you to check if the given beau config is valid. Will be used
to improve the CLI and remove schema validation-type errors from the
actual code.

* Added a validate command to the CLI.

This command is a way to test the config file. Eventually it'll probably
be removed and the schema validation will run on every other command. I
have to determine how useful this is and how performance might be
affected.
2018-05-01 22:20:14 -06:00
David Diaz fe401c1391 Added support for multiple hosts.
This introduces a top level key: `hosts`. It's an array where you can
configure multiple hosts with their own requests, they share defaults
and environment with the global scope.

This allows you to  have multiple paths being the same with different
endpoints and settings.
2018-01-19 18:10:00 -06:00
David Diaz 90752c47b1 This adds environment variables.
Allows you to set variables that you can then use throughout your
configuration file.
2018-01-10 16:39:38 -06:00
David Diaz 40abf85a78 Added a new top-level setting: defaults.
Defaults allow you to set default settings for all requests. You can
pass any configuration value and it'll be merged with any values the
request already has allowing you to write even less repetitive code.
2017-12-27 16:43:47 -06:00
David Diaz 32b9f0f523 Cleaning the CLI tool. Small refactorings all around.
If a string is passed to a request configuration its now considered
that request's alias.
2017-12-03 23:56:09 -06:00
David Diaz e8f3d0eda2 Added support for a documentation field in the beau.yaml file.
This field will be use to prettify the output of certain tools and to
document apis.
2017-10-21 14:39:00 -06:00
David Diaz 7ecd5428c6 Replaced unirest with request-promise. Tried using the built it http
stuff but it's just silly.
2017-10-20 18:59:37 -06:00
Sergio Díaz 3c2691b164 Added basic support for plugins.
Plugins can now be included, they can modify the requests before they
are made and modify the result. They are very simple to write and work
with. I also wrote and example plugin over at seich/beau-jwt.
2017-04-05 22:55:09 -06:00
Sergio Díaz 2531a8bb32 Add a shortcut to a request's response body since it's what it'll be used for most of the time. 2017-03-07 18:08:31 -06:00
Sergio Díaz fde0fc6543 Moved all of the uppercase stuff into the code and out of the config.
This makes it easier to write the config file and makes everything easier to reason about on the code.
2017-03-07 18:01:11 -06:00
Sergio Díaz c4adfeaf75 Moved the list from the request method call to it's constructor. 2017-03-01 13:44:52 -06:00
Sergio Díaz 40f17dccaf Initial Commit. 2017-02-10 21:11:13 -06:00