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

Option to create project #2

Open
Kedap opened this issue Sep 14, 2021 · 3 comments
Open

Option to create project #2

Kedap opened this issue Sep 14, 2021 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest Hacktoberfest issues.

Comments

@Kedap
Copy link
Contributor

Kedap commented Sep 14, 2021

An option like:
devmode create project-name

Would be great asking if it will be done with git, vsc or not, as well as if it is a javascript project, which starts with npm, ruby with bundle, rust with cargo and with different languages or at least with the most popular.

@edfloreshz edfloreshz added the enhancement New feature or request label Sep 14, 2021
@edfloreshz
Copy link
Owner

This is a bit tricky because the user won't have tooling for every single type of project out there and if we tried to offer installing the tools ourselves we would end up supporting custom install scripts, many package managers, OS's without package managers...

How do you propose we do this?

@Kedap
Copy link
Contributor Author

Kedap commented Sep 16, 2021

My proposal is to run the command of a dependency manager

use std::process::Command;

let command_example = Command::new("npm")
 .output()
 .unwrap();
if command_example.status.to_string() != "exit status: 127" {
 println!("Npm is installed!");
 //Steps normaly for a new project...
 //...execute npm init
else {
 println!("Is recommend install npm to javascript/typescript projects");
 //Steps normaly for a new project...
}

@edfloreshz
Copy link
Owner

I think we can find a create that does this already and use it.

@edfloreshz edfloreshz added good first issue Good for newcomers hacktoberfest Hacktoberfest issues. labels Oct 3, 2022
@edfloreshz edfloreshz changed the title Option to create project [FEATURE] Option to create project Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest Hacktoberfest issues.
Projects
None yet
Development

No branches or pull requests

2 participants