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 :
1
>> buck --create
Copied!
or
1
>> buck -c
Copied!
You should get :
1
>> Howdy! Create A New Bucket
2
3
Name :
Copied!
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
1
>> Howdy! Create A New Bucket
2
3
Name : new
Copied!
Your terminal will prompt you a couple of times, so let me show you the values i have :
1
>> Howdy! Create A New Bucket
2
3
Name : new
4
5
>> Seperate commands with a comma
6
7
Commands : mkdir $, cd $, code .
8
9
Executor : new
10
11
Description : this makes a new bucket and opens it in vscode
Copied!

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 :
1
>> Howdy! Create A New Bucket
2
3
Name : new
4
5
>> Seperate commands with a comma
6
7
Commands : mkdir myApp, cd myApp, code .
8
9
Executor : new
10
11
Description : this makes a new bucket and opens it in vscode
Copied!
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 ! 🔥
1
>> Howdy! Create A New Bucket
2
3
Name : new
4
5
>> Seperate commands with a comma
6
Commands : mkdir $, cd $, code .
7
8
Executor : new
9
10
Description : this makes a new bucket and opens it in vscode
11
12
>> yay! it is done
13
14
>> Usage : 'buck new [extra argument]'
Copied!
Done. You just made your first bucket.