Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

"truffle init" should check for existence of truffle.js before messing up with the current dir #356

Closed
1 task done
ghost opened this issue Feb 9, 2017 · 1 comment
Closed
1 task done

Comments

@ghost
Copy link

ghost commented Feb 9, 2017


Issue

"truffle init" will screw up your working directory

Steps to Reproduce

Have a working truffle workspace with a bunch of stuff in it.

Expected Behavior

"truffle init" does nothing, e.g., does not add MetaCoin.sol, and perhaps prompt you "The current directory already contains a truffle.js, skipping..."

Actual Results

Adds MetaCoin.sol to contracts and generally mess up your workspace

Environment

All

@tcoulter
Copy link
Contributor

Added to truffle-init in v1.0.5. To enable, uninstall and reinstall Truffle, which will download the latest truffle-init dependency. Cheers!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant