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

Suggestion: lando init creates dir or offers to #77

Open
emile-hj opened this issue Dec 8, 2023 · 2 comments
Open

Suggestion: lando init creates dir or offers to #77

emile-hj opened this issue Dec 8, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@emile-hj
Copy link

emile-hj commented Dec 8, 2023

Hi there, I have a suggestion for the CLI functionality that could potentially be considered.

I know that others possibly use the lando init command in a different way to me, but I only using Lando to work on Drupal sites hosted on Pantheon. I frequently use:

lando init --source pantheon

to clone down an existing site and start working on it. The issue I often have is that I have to:

mkdir siteName
cd siteName
lando init --source pantheon
choose siteName

because running the init command does not create a directory. This is different to how a lot of software works and I often forget to create the directory. I end up doing:

cd sites
lando init--source pantheon

expecting it to make siteName inside sites, but instead, I clone the site directly into the sites folder.

Would it be worth considering changing this, or the command offering the option to create a site directory?

@pirog pirog transferred this issue from lando/lando Dec 8, 2023
@reynoldsalec reynoldsalec added enhancement New feature or request and removed Needs Triage labels Apr 1, 2024
@reynoldsalec
Copy link
Member

@emile-hj you're a mindreader: this has actively been discussed as the behavior of the V4 CLI. I'm going to move this over to lando/cli since I think that will be more appropriate and put a V4 tag on it so we don't "forget"

@reynoldsalec reynoldsalec transferred this issue from lando/drupal Apr 1, 2024
@AaronFeledy
Copy link
Member

It always feels like a clunky process to me as well, prone to errors such as running init and generating the landofile in the parent directory.

That said, "init" is a command that's common to lots of tools and those tools usually use init to generate a config in the current directory. So it may be unexpected behavior to some if that's not what it does. I do think it makes sense though that recipes that walk you through the process of cloning a repo give you the option of specifying a new directory.

@pirog pirog transferred this issue from lando/legacy-cli Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants