49
edits
| (4 intermediate revisions by the same user not shown) | |||
| Line 5: | Line 5: | ||
== Arguments == | == Arguments == | ||
* name (optional) - The name of the context to switch to. If no name, then prints the name of the current context. | * name (optional) - The name of the context to switch to. If no name, then prints the name of the current context. | ||
== Associations == | |||
* Is available in all contexts. | |||
== Details == | == Details == | ||
| Line 25: | Line 28: | ||
global | global | ||
</kua> | </kua> | ||
=== Context | === Context separation === | ||
* Same as the first example. But change to the known 'client' context, which is addressable from the 'global' context. | * Same as the first example. But change to the known 'client' context, which is addressable from the 'global' context. | ||
<kua> | <kua> | ||
| Line 45: | Line 48: | ||
> context | > context | ||
global | global | ||
> bob | |||
Unknown: bob | |||
</kua> | |||
=== Without switching === | |||
In these examples a context is addressed directly without using the context command. | |||
* Show current context. | |||
<kua> | |||
> context | |||
global | |||
</kua> | |||
* Start the client service directly from global without switching. | |||
<kua> | |||
> client start | |||
Client started. | |||
</kua> | |||
* Set the 'bob' variable in client, check its value in 'client', and verify it's not in 'global'. | |||
<kua> | |||
> client bob 8081 | |||
> client bob | |||
'bob' is '8081' | |||
> bob | > bob | ||
Unknown: bob | Unknown: bob | ||