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

Add --output option to conan new command #17359

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

AbrilRBS
Copy link
Member

@AbrilRBS AbrilRBS commented Nov 21, 2024

Changelog: Feature: Add --output option to conan new command.
Docs: Omit

We found that it was usueful when creating a mock multiproject

Only thing is that we recently removed the conan new command tests, and there's no good place to add one now :(.

I can confirm that it works locally for me though

--------------------------

Co-authored-by: PerseoGI <perseog@jfrog.com>
@AbrilRBS AbrilRBS added this to the 2.10.0 milestone Nov 21, 2024
@AbrilRBS AbrilRBS requested a review from perseoGI November 21, 2024 11:48
Copy link
Member

@memsharded memsharded left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functionality looks good and useful, I'd just:

  • reconsider the arg name
  • Add 1 test

conan/cli/commands/new.py Outdated Show resolved Hide resolved
@AbrilRBS AbrilRBS changed the title Add --output-folder option to conan new command Add --output option to conan new command Nov 21, 2024
@@ -93,9 +93,11 @@ def _read_files(self, template_folder):
@staticmethod
def render(template_files, definitions):
result = {}
name = definitions.get("name", "Pkg")
name = definitions.get("name", "pkg")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When no name was passed, an uppercase one was being used!

@memsharded memsharded merged commit 6c620e8 into conan-io:develop2 Nov 21, 2024
2 checks passed
@AbrilRBS AbrilRBS deleted the ar/conan-new-output-folder branch November 21, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants