Comments (8)
Can you also share which version of node and npm are you using?
from squash.
@arshadkazmi42
Latest I hope.
from squash.
Are you getting this error every time you are squashing a command?
You should add your command inside double quotes if it contains spaces
sudo squash "diskutil list" --alias=diskking
from squash.
- Yes. to be more clear the command does get added and it does work and doesn't throw error when we run the squashed command but creating a new alias causes this.
You should add your command inside double quotes if it contains spaces
sudo squash "diskutil list" --alias=diskking
- Got it.
from squash.
I just tried it in another laptop. I can reproduce it, looks like some issue in create directory logic.
I will look into this later today.
Thank you for reporting
from squash.
@arshadkazmi42 Would like to work in this with you if possible. Is there any way this could be possible
from squash.
@co16353sidak Sure.
You can send a PR for this if you like.
The issue is somewhere here
https://github.com/arshadkazmi42/squash/blob/master/lib/file-operations/command-create.js#L12
https://github.com/arshadkazmi42/squash/blob/master/lib/squash.js#L35
Create directory is getting called twice.
We can remove createDirectory from command-create.js file.
as its handled in squash.js
I think this should fix this issue.
from squash.
Please check.
from squash.
Related Issues (20)
- delete yarn.lock file
- Code cleanup
- fix vulnerability HOT 3
- Add option to overwrite / delete existing command
- Remove Contributors section from readme HOT 1
- Change travis to github workflow
- Change tests to run on pull request - github workflow HOT 2
- Run local tests in Travis CI
- Remove dummy squashed commands HOT 5
- Release 1.2.3 on NPM HOT 3
- Merge test files HOT 2
- Improve README.md
- Update contributors hof HOT 1
- Change root dir for aliases HOT 1
- Release 1.2.4
- Add a valid license HOT 3
- squash 2.0 HOT 4
- Adding some terminal colors
- Change flags to sub commands HOT 1
- Rewrite list command HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from squash.