Commit 41298076 authored by bbguimaraes's avatar bbguimaraes
Browse files

scripts/nngn: plot

parent 5819a9f8
......@@ -10,6 +10,7 @@ main() {
check) subdir nngn.py check "$@";;
configure) subdir nngn.py configure "$@";;
launcher) launcher;;
plot) plot "$@";;
*) usage;;
esac
}
......@@ -23,6 +24,7 @@ Commands:
check DIR CHECKS [-- CONFIGURE_ARGS...]
configure DIR CHECKS [-- CONFIGURE_ARGS...]
launcher
plot time
EOF
return 1
}
......@@ -41,4 +43,17 @@ launcher() {
[[ "$t" ]] && exec "$t/$p" "$PWD/sock"
}
plot() {
[[ "$#" -eq 0 ]] && usage
local cmd=$1; shift
case "$cmd" in
time) plot_time "$@";;
*) usage;;
esac
}
plot_time() {
{ echo g l; ts $'f %s\nd l'; } | nngn_plot
}
main "$@"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment