Add local build command replacing local create #2048
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This patch enables the changes outlined in issue #2038
Concretely the patch brings in the following CLI changes:
inspect
is nowlocal inspect
with no other functional changeslocal create
has been renamed tolocal build
and has had the functionality expanded:In addition to the features of
local create
,local build
can also now create a directory structure with the integration files: property files, routes and dependencies.The directory will be created in the parent directory of where the command was invoked and will contain the following directory structure:
The
properties
,routes
anddependencies
subdirectories will contain the respective integration files.For convenience one can output just the dependencies as follows:
local run
can now take as input an integration directory constructed bylocal build
. Only full integration directories can be processed i.e. directories created with--dependencies-only
are not supported.local run
can use an integration directory as input and run the integration locally:local run
can use an integration directory and run the integration within a container:For now, if route files contain modeline options which depend on lazily evaluated environment variables (for example
[[env:ENV_VAR]]
) then the command above will need to specify the environment variable explicitly like so:Release Note