aboutsummaryrefslogtreecommitdiff
path: root/bin/ak
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak')
-rwxr-xr-xbin/ak15
1 files changed, 12 insertions, 3 deletions
diff --git a/bin/ak b/bin/ak
index 8d86db8..17cf351 100755
--- a/bin/ak
+++ b/bin/ak
@@ -18,6 +18,7 @@
### along with this program. If not, see <http://www.gnu.org/licenses/>.
###
export AK_DEBUG="yes"
+export AK_DEBUG_IRC="no"
##
## Arching Kaos CLI tool is the main executable script to use for exploring,
## creating and distributing local blockchain(s) called zchain(s).
@@ -45,8 +46,16 @@ PROGRAM="$(basename $0)"
descriptionString="Arching Kaos CLI"
source $HOME/.arching-kaos/rc
-source $AK_LIBDIR/_ak_log
-source $AK_LIBDIR/_ak_script
+source $AK_LIBDIR/_ak_lib_load
+_ak_lib_load _ak_log
+_ak_lib_load _ak_script
+
+if [ "$1" == "-vi" ]
+then
+ export AK_DEBUG_IRC="yes"
+ export AK_DEBUG="no"
+ shift
+fi
if [ $# -eq 0 ]
then
@@ -153,7 +162,7 @@ case "$1" in
_ak_exit_program $? "$subcmd module finished";
;;
-s|--shell)
- ak sh -s
+ rlwrap ak sh -s
_ak_exit_program $? "Shell terminated";
;;
esac