Buck
Search…
Creating a new bucket ⭐️
We'll make a new bucket that makes a new folder and opens it in vs code.
Creating a new bucket is quite easy :
>> buck --create
or
>> buck -c
You should get :
>> Howdy! Create A New Bucket
Name :
Great job, champ! ⚡️

Name

Your terminal will prompt you to put in a value for "Name", so go ahead and name it whatever you want, i'll name mine - new
>> Howdy! Create A New Bucket
Name : new
Your terminal will prompt you a couple of times, so let me show you the values i have :
>> Howdy! Create A New Bucket
Name : new
>> Seperate commands with a comma
Commands : mkdir $, cd $, code .
Executor : new
Description : this makes a new bucket and opens it in vscode

Commands

This takes in all the commands you would like to execute
Seperate multiple commands with a comma.

$

You must have seen that i added $ after the mkdir and cd, if we didn't and we did this instead :
>> Howdy! Create A New Bucket
Name : new
>> Seperate commands with a comma
Commands : mkdir myApp, cd myApp, code .
Executor : new
Description : this makes a new bucket and opens it in vscode
It would be not so useful because, we wouldn't want all our new project names to be myApp . So we add a $ to expect future values when we are executing this bucket. When we run this bucket later, buck replaces $ with an extra argument you pass in execution.
Genius !

Executor

This is a unique magic keyword that executes our bucket, i named mine - new, you can name yours anything you want.

Description (Optional)

This takes in a message of what exactly the bucket does, feel free to skip.
Weldone, chief ! 🔥
>> Howdy! Create A New Bucket
Name : new
>> Seperate commands with a comma
Commands : mkdir $, cd $, code .
Executor : new
Description : this makes a new bucket and opens it in vscode
>> yay! it is done
>> Usage : 'buck new [extra argument]'
Done. You just made your first bucket.