From 0505a9d6f7cf506d113854df939cdad8b59284e8 Mon Sep 17 00:00:00 2001 From: Shaurya Shubham Date: Thu, 3 Oct 2019 16:27:04 +0530 Subject: [PATCH] Create docs for add command Partial fix of issue #711 --- docs/commands/add.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 docs/commands/add.md diff --git a/docs/commands/add.md b/docs/commands/add.md new file mode 100644 index 000000000..f3f080859 --- /dev/null +++ b/docs/commands/add.md @@ -0,0 +1,28 @@ +# add + +This command adds a column to any table output. The first parameter takes the heading, the second parameter takes the value for all the rows. + +## Examples + +```shell +> ls | add is_on_a_computer yes_obviously +━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━┯━━━━━━━━━━┯━━━━━━━━┯━━━━━━━━━━━┯━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━ + # │ name │ type │ readonly │ size │ accessed │ modified │ is_on_a_computer +───┼────────────────────────────┼──────┼──────────┼────────┼───────────┼───────────┼────────────────── + 0 │ zeusiscrazy.txt │ File │ │ 556 B │ a day ago │ a day ago │ yes_obviously + 1 │ coww.txt │ File │ │ 24 B │ a day ago │ a day ago │ yes_obviously + 2 │ randomweirdstuff.txt │ File │ │ 197 B │ a day ago │ a day ago │ yes_obviously + 3 │ abaracadabra.txt │ File │ │ 401 B │ a day ago │ a day ago │ yes_obviously + 4 │ youshouldeatmorecereal.txt │ File │ │ 768 B │ a day ago │ a day ago │ yes_obviously +━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━┷━━━━━━━━━━┷━━━━━━━━┷━━━━━━━━━━━┷━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━ +``` + +```shell +> shells | add os linux_on_this_machine +━━━┯━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━ + # │ │ name │ path │ os +───┼───┼────────────┼────────────────────────────────┼─────────────────────── + 0 │ X │ filesystem │ /home/shaurya/stuff/expr/stuff │ linux_on_this_machine + 1 │ │ filesystem │ / │ linux_on_this_machine +━━━┷━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━ +```