Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wildcards in Routes Sources #4941

Closed
MotaOcimar opened this issue Nov 29, 2023 · 4 comments · Fixed by #5015
Closed

Wildcards in Routes Sources #4941

MotaOcimar opened this issue Nov 29, 2023 · 4 comments · Fixed by #5015
Assignees
Labels
good first issue Does not require full understanding of the codebase kind/feature New feature or request

Comments

@MotaOcimar
Copy link
Contributor

Requirement

As a user seeking simplicity in Camel K Integration configuration,
I want the ability to create Integrations from all files in a directory using a wildcard,
so that I can avoid dealing with a lengthy command line or multiple lines in the kamel-config.yaml file.

Problem

When we have several source files we end up with a huge command line (or several lines in the kamel-config.yaml file).

For example:

kamel run --name=my-integration ./routes/file1.xml ./routes/file2.xml ./routes/file3.xml ./routes/file4.xml

Proposal

This could be extremely simplified with a wildcard.

For the example shown previously, we could have the following:

kamel run --name=my-integration ./routes/*

Open questions

No response

@MotaOcimar MotaOcimar added the kind/feature New feature or request label Nov 29, 2023
@squakez squakez added the good first issue Does not require full understanding of the codebase label Nov 29, 2023
@squakez
Copy link
Contributor

squakez commented Nov 29, 2023

Thanks for reporting. Feel free to contribute, it does seem a good first issue case.

@claudio4j
Copy link
Contributor

At least in linux when you use the wildcard, bash does the completion expansion and your example actually works.
However I am unsure about wildcard expansion in windows or macos.

@rinaldodev
Copy link
Contributor

@squakez @claudio4j can you assign this one to me?

@squakez
Copy link
Contributor

squakez commented Dec 19, 2023

Done. Mind that we are under the effort to migrate the CLI to Camel JBang (see apache/camel#12474). However I think it is still a good exercise to get used to the source code and be able to do other contributions. Thanks.

rinaldodev added a commit to rinaldodev/camel-k that referenced this issue Jan 2, 2024
rinaldodev added a commit to rinaldodev/camel-k that referenced this issue Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Does not require full understanding of the codebase kind/feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants