From 116c9f48bc11176d7c380e4cb530050150e032c4 Mon Sep 17 00:00:00 2001 From: Jim Garlick Date: Mon, 28 Aug 2017 07:15:36 -0700 Subject: [PATCH] doc/flux-kvs(1): Add ls subcommand. --- doc/man1/flux-kvs.adoc | 9 +++++++++ src/cmd/flux-kvs.c | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/man1/flux-kvs.adoc b/doc/man1/flux-kvs.adoc index 6ccb44ea35e8..9477613fcc59 100644 --- a/doc/man1/flux-kvs.adoc +++ b/doc/man1/flux-kvs.adoc @@ -50,6 +50,15 @@ Retrieve the value stored under 'key'. If nothing has been stored under Store 'value' under 'key' and commit it. If it already has a value, overwrite it. +*ls* [-R] [-d] [-C] [-1|-C] [-w COLS] [-F] ['key' ...]:: +Display directory referred to by _key_, or "." (root) if unspecified. +Options are roughly equivalent to a subset of ls(1) options. +'-R' lists directory recursively. '-d' displays directory not its contents. +'-F' classifies files with one character suffix (. is directory, @ is symlink). +'-1' causes output to be displayed in one column, or '-C' cause output to +be displayed in multiple columns (default). '-w COLS' sets the terminal width +in characters. + *dir* [-R] [-d] ['key']:: Display all keys and their values under the directory 'key'. If 'key' does not exist or is not a directory, display an error message. diff --git a/src/cmd/flux-kvs.c b/src/cmd/flux-kvs.c index 8df2e6a454d2..de1bd46ceec3 100644 --- a/src/cmd/flux-kvs.c +++ b/src/cmd/flux-kvs.c @@ -25,7 +25,6 @@ #if HAVE_CONFIG_H #include "config.h" #endif -#include #include #include #include