add ctx::endpoint_cache as arg to wrapper
This commit is contained in:
parent
3c3f870427
commit
d5de344d99
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ function json::has_key() { python3 "$JSON_HELPER" has_key
|
||||||
function json::filter_values() { python3 "$JSON_HELPER" filter_values "$@" </dev/null; }
|
function json::filter_values() { python3 "$JSON_HELPER" filter_values "$@" </dev/null; }
|
||||||
function json::last_event() { python3 "$JSON_HELPER" last_event "$@" </dev/null; }
|
function json::last_event() { python3 "$JSON_HELPER" last_event "$@" </dev/null; }
|
||||||
function json::events_for() { python3 "$JSON_HELPER" events_for "$@" </dev/null; }
|
function json::events_for() { python3 "$JSON_HELPER" events_for "$@" </dev/null; }
|
||||||
function json::fw_events() { WGCTL_DATETIME_FMT="$FMT_DATETIME_SHORT" python3 "$JSON_HELPER" fw_events "$@" </dev/null; }
|
function json::fw_events() { WGCTL_DATETIME_FMT="$FMT_DATETIME_SHORT" python3 "$JSON_HELPER" fw_events "$@" "$(ctx::endpoint_cache)" </dev/null; }
|
||||||
function json::wg_events() { WGCTL_DATETIME_FMT="$FMT_DATETIME_SHORT" python3 "$JSON_HELPER" wg_events "$@" "$(ctx::endpoint_cache)" </dev/null; }
|
function json::wg_events() { WGCTL_DATETIME_FMT="$FMT_DATETIME_SHORT" python3 "$JSON_HELPER" wg_events "$@" "$(ctx::endpoint_cache)" </dev/null; }
|
||||||
function json::format_fw_event() { echo "$1" | python3 "$JSON_HELPER" format_fw_event "$2"; }
|
function json::format_fw_event() { echo "$1" | python3 "$JSON_HELPER" format_fw_event "$2"; }
|
||||||
function json::format_wg_event() { echo "$1" | python3 "$JSON_HELPER" format_wg_event; }
|
function json::format_wg_event() { echo "$1" | python3 "$JSON_HELPER" format_wg_event; }
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue