Buck
Searchโ€ฆ
Executing your bucket ๐Ÿ”ฎ
some buck magic ...

Activating your super powers ๐Ÿง™๐Ÿพ

If you followed the last session , this is the bucket we get when we run, buck --list new :
1
>> Here you go :
2
โ€‹
3
{
4
"name": "new",
5
"executor": "new",
6
"buck_list": [
7
"mkdir quot;,
8
" cd quot;,
9
" code ."
10
],
11
"description": "this creates a new bucket and opens it in vscode"
12
}
13
โ€‹
Copied!
Looking at the buck_list we have three commands to run, to do this, we use our magic executor new -
1
>> buck new
Copied!
When we hit enter, we get this :
1
>> This command takes in an extra argument -'new <extra argument>'
Copied!
Error !

Why ?

When we created the bucket, the commands we added had the $ keyword, buck was expecting an extra argument, which will replace $ in execution.
To fix this, we add an extra argument :
1
>> buck new myUnicornApp
Copied!
buck + executor + extra_argument
with some buck magic, here you go :
1
>> buck new myUnicornApp
2
โ€‹
3
>> Done! executed 3 commands.
Copied!
Buck ran all 3 commands by itself, it created a new folder called myUnicornApp , and it opened it in vs code ๐Ÿ˜ฒ
Wherever you are terminal, you can run this command with any extra argument, and it will work fine!
Welcome onboard, hero ! โšก๏ธ