summaryrefslogtreecommitdiff
path: root/command/ls.c
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-05-16 19:15:01 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-05-16 19:15:01 -0400
commit67173fb97117a41cebb82a1364ae686a9574927b (patch)
treee631e7515bcb7420b6348c0e3159336298d4e3df /command/ls.c
parentupdate ls (diff)
downloadlazysphere-67173fb97117a41cebb82a1364ae686a9574927b.tar.gz
lazysphere-67173fb97117a41cebb82a1364ae686a9574927b.tar.bz2
lazysphere-67173fb97117a41cebb82a1364ae686a9574927b.zip
slight refactor and start documenting
Diffstat (limited to 'command/ls.c')
-rw-r--r--command/ls.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/command/ls.c b/command/ls.c
index 788f2ff..f40cdf3 100644
--- a/command/ls.c
+++ b/command/ls.c
@@ -1,3 +1,8 @@
+/**
+ * file: ls.c
+ * author: Tyler Murphy
+ */
+
#include "command.h"
#include "lslib.h"
@@ -37,12 +42,12 @@ enum When {
* Flags that are to be used with ls
*/
static struct {
- bool hidden; /* -a */
- bool hide_dot; /* -A */
- bool more_info; /* -l */
- bool one_column; /* -1 */
- bool recurse; /* -R */
- bool octets; /* -o */
+ bool hidden; /* -a if to show hidden files */
+ bool hide_dot; /* -A if to hide dot dirs */
+ bool more_info; /* -l if to print info as a long list */
+ bool one_column; /* -1 if to print files as a single column */
+ bool recurse; /* -R if to recurse directorys */
+ bool octets; /* -o if to print mode as its octet instead of romanized */
enum When colored; /* --color=never/no/yes/always/auto */
} flags;