Bcome is used by navigating to a namespace, and invoking the method of your choice.
Let’s imagine you have Namespaces laid out in the following parent-child relationship:
. └── parent └── child └── grandchild
Bcome exposes a REPL (read-eval-print loop) shell, built on top of Ruby’s IRB (interactive Ruby) shell.
Each namespace is loaded into a distinct shell session, which you may then interact with directly.
Enter the Console at the root namespace:
List your namespaces:
Traverse to the ‘child’ namespace, and onward to ‘grandchild’:
> cd child > cd grandchild
Go back up a level:
Exit back to you terminal:
For a full list of in-built commands see menu.
For accessing your custom commands, see the Registry (Registry Overview).
Bcome provides a shortcut to any namespace, referred to as Keyed-Access, where the namespace breadcrumb is included as a parameter to
Enter the Console using Keyed-Access.¶
To enter the CLI directly at our ‘grandchild’ namespace, you would enter the following command:
> bcome child:grandchild
This allows you to start a Console session directly at the namespace you require, without having to traverse your tree.
Invoking ‘ls’ on any namespace will list its direct children, whilst invoking ‘tree’ on any namespace will list the Bcome tree structure beneath.
See Executing Commands for how to execute commands in Keyed-access or Console mode.