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

xmake init and force create project #1907

Closed
Bricklou opened this issue Dec 13, 2021 · 1 comment
Closed

xmake init and force create project #1907

Bricklou opened this issue Dec 13, 2021 · 1 comment

Comments

@Bricklou
Copy link
Contributor

Is your feature request related to a problem? Please describe.

I often work with already created or cloned projects where I want to initialize a xmake project (i.e. fresh created git repo with default README file). But at the moment, xmake doesn't allow creating projects in non-empty directories.

Describe the solution you'd like

  1. Add an -f / --force to force xmake to create a project
  2. Add a xmake init command to initialize a project in the current folder. Maybe add a prompt to confirm the action if there are files conflicts or if the directory is not empty.
@waruqi
Copy link
Member

waruqi commented Dec 13, 2021

you can update to dev branch and try it.

xmake create -f -P . test
xmake create --force -P . test

@waruqi waruqi added this to the v2.6.2 milestone Dec 13, 2021
@waruqi waruqi closed this as completed Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants