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 :
>> Here you go :
โ€‹
{
"name": "new",
"executor": "new",
"buck_list": [
"mkdir quot;,
" cd quot;,
" code ."
],
"description": "this creates a new bucket and opens it in vscode"
}
โ€‹
Looking at the buck_list we have three commands to run, to do this, we use our magic executor new -
>> buck new
When we hit enter, we get this :
>> This command takes in an extra argument -'new <extra argument>'
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 :
>> buck new myUnicornApp
buck + executor + extra_argument
with some buck magic, here you go :
>> buck new myUnicornApp
โ€‹
>> Done! executed 3 commands.
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 ! โšก๏ธ
Copy link
On this page
Activating your super powers ๐Ÿง™๐Ÿพ
Why ?