mirror of https://github.com/tstack/lnav.git
[tutorial] some more nits
This commit is contained in:
parent
915f583ab0
commit
ff91cfc3a0
|
@ -52,6 +52,8 @@ steps:
|
|||
Welcome to the first _interactive_ **lnav** tutorial!
|
||||
|
||||
This tutorial will guide you through the basics of navigating log files.
|
||||
Pressing `q` will display an example log file to try out commands on.
|
||||
Pressing `y` will return you to the next step in the tutorial.
|
||||
|
||||
## Step 1
|
||||
|
||||
|
|
|
@ -3,4 +3,7 @@
|
|||
export LNAVSECURE=1
|
||||
export TERM=xterm-256color
|
||||
|
||||
timeout --foreground 5m lnav -I /tutorials/tutorial-lib /tutorials/tutorial1/tutorial1.glog /tutorials/tutorial1/index.md#tutorial-1
|
||||
timeout --foreground 5m lnav \
|
||||
-I /tutorials/tutorial-lib \
|
||||
/tutorials/tutorial1/tutorial1.glog \
|
||||
/tutorials/tutorial1/index.md#tutorial-1
|
||||
|
|
|
@ -4333,7 +4333,9 @@ com_config(exec_context& ec,
|
|||
if (!ec.ec_dry_run) {
|
||||
retval = "info: changed config option -- " + option;
|
||||
rollback_lnav_config = lnav_config;
|
||||
save_config();
|
||||
if (!(lnav_data.ld_flags & LNF_SECURE_MODE)) {
|
||||
save_config();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4380,7 +4382,9 @@ com_reset_config(exec_context& ec,
|
|||
if (!ec.ec_dry_run) {
|
||||
reset_config(option);
|
||||
rollback_lnav_config = lnav_config;
|
||||
save_config();
|
||||
if (!(lnav_data.ld_flags & LNF_SECURE_MODE)) {
|
||||
save_config();
|
||||
}
|
||||
}
|
||||
if (option == "*") {
|
||||
retval = "info: reset all options";
|
||||
|
|
|
@ -93,6 +93,7 @@ main(int argc, char* argv[])
|
|||
auto handle = yajl_alloc(&cbs, nullptr, nullptr);
|
||||
auto rc = yajl_parse(handle, (const unsigned char*) UNICODE_BARF, 12);
|
||||
assert(rc == yajl_status_ok);
|
||||
yajl_free(handle);
|
||||
}
|
||||
|
||||
struct json_path_container test_obj_handler = {
|
||||
|
|
Loading…
Reference in New Issue