Project

General

Profile

Commands » History » Version 1

Stefan Mark, 01/02/2021 06:02 PM

1 1 Stefan Mark
h1. Commands
2
3
> Note that all commands are using functions from nxshlib and (currently) send all parameters to the called function, which may cause trouble for all parameters not listed here.
4
5
<pre>nxgetkey key [-d default] [session]</pre>
6
7
Returns 0 if @key@ was found, 1 otherwise. Echos the value  for @key@.
8
If @-d default@ was given, returns 0 even if @key@ was not found and echos its value.
9
10
<pre>nxhaskey key [session]</pre>
11
12
Returns 0 if @key@ was found, 1 otherwise.
13
14
<pre>nxapp key [session]</pre>
15
16
Returns 0 if @key@App was found, 1 otherwise. Execs value.
17
18
<pre>nxiftrue key [session]</pre>
19
20
Returns 0 if @key@ was found and its value was true. 1 otherwise.