diff options
author | friendica <info@friendica.com> | 2013-01-13 15:33:24 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-01-13 15:33:24 -0800 |
commit | 5ea70892ed2d265d27723dd32a4b898f4ad769c2 (patch) | |
tree | 70b23cbd16e6f2f216c9593c836c340dc40ae827 | |
parent | de3b5955c982cb470036991ef15869705faf5595 (diff) | |
download | volse-hubzilla-5ea70892ed2d265d27723dd32a4b898f4ad769c2.tar.gz volse-hubzilla-5ea70892ed2d265d27723dd32a4b898f4ad769c2.tar.bz2 volse-hubzilla-5ea70892ed2d265d27723dd32a4b898f4ad769c2.zip |
fresh: add help|? command
-rwxr-xr-x | util/fresh | 22 | ||||
-rw-r--r-- | version.inc | 2 |
2 files changed, 21 insertions, 3 deletions
diff --git a/util/fresh b/util/fresh index 0775755b2..7f96a319c 100755 --- a/util/fresh +++ b/util/fresh @@ -34,6 +34,7 @@ function fresh_main($argc,$argv) { $line = trim($line); if($line == 'quit' || $line == 'exit') exit(); + process_command($line); } @@ -60,6 +61,11 @@ function process_command($line) { } switch(argv(0)) { + case '?': + case 'help': + fresh_help(); + break; + case 'finger': if(argv(1)) { $x = zot_finger(argv(1),$channel); @@ -120,11 +126,11 @@ function process_command($line) { intval(argv($x)), intval(local_user()) ); - if($r) echo jindent(json_encode($r[0])); + if($r) echo jindent(json_encode($r[0])) . "\n"; } } else { - $r = q("select * from abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d", + $r = q("select * from abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d order by abook_id", intval(local_user()) ); if($r) { @@ -143,3 +149,15 @@ function process_command($line) { } +function fresh_help() { + + if(argc() == 1) { + echo "help - this text\n"; + echo "login email_address - login with email_address, prompts for password\n"; + echo "finger channel_address - lookup channel_address remotely\n"; + echo "channel new_channel - change active channel to new_channel (nickname)\n"; + echo "conn [id1] [id2...] - without args list connections, or report detail of connection id1 (etc.)\n"; + echo "quit|exit - terminate fresh\n"; + + } +}
\ No newline at end of file diff --git a/version.inc b/version.inc index 8406a0f02..5995ba7a6 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2013-01-12.198 +2013-01-13.199 |