From 5bfff0c39bfa593e60e83200f2f91db91d4ee7ae Mon Sep 17 00:00:00 2001 From: Shaurya Shubham Date: Thu, 3 Oct 2019 16:54:28 +0530 Subject: [PATCH] Create docs for edit command Partial fix of issue #711 --- docs/commands/edit.md | 45 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 docs/commands/edit.md diff --git a/docs/commands/edit.md b/docs/commands/edit.md new file mode 100644 index 0000000000..5cfeeb55fe --- /dev/null +++ b/docs/commands/edit.md @@ -0,0 +1,45 @@ +# edit + +Edits an existing column on a table. First parameter is the column to edit and the second parameter is the value to put. + +## Examples + +```shell +> ls +━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━┯━━━━━━━━━━┯━━━━━━━━┯━━━━━━━━━━━┯━━━━━━━━━━━ + # │ name │ type │ readonly │ size │ accessed │ modified +───┼────────────────────────────┼──────┼──────────┼────────┼───────────┼─────────── + 0 │ zeusiscrazy.txt │ File │ │ 556 B │ a day ago │ a day ago + 1 │ coww.txt │ File │ │ 24 B │ a day ago │ a day ago + 2 │ randomweirdstuff.txt │ File │ │ 197 B │ a day ago │ a day ago + 3 │ abaracadabra.txt │ File │ │ 401 B │ a day ago │ a day ago + 4 │ youshouldeatmorecereal.txt │ File │ │ 768 B │ a day ago │ a day ago +━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━┷━━━━━━━━━━┷━━━━━━━━┷━━━━━━━━━━━┷━━━━━━━━━━━ +> ls | edit modified neverrrr +━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━┯━━━━━━━━━━┯━━━━━━━━┯━━━━━━━━━━━┯━━━━━━━━━━ + # │ name │ type │ readonly │ size │ accessed │ modified +───┼────────────────────────────┼──────┼──────────┼────────┼───────────┼────────── + 0 │ zeusiscrazy.txt │ File │ │ 556 B │ a day ago │ neverrrr + 1 │ coww.txt │ File │ │ 24 B │ a day ago │ neverrrr + 2 │ randomweirdstuff.txt │ File │ │ 197 B │ a day ago │ neverrrr + 3 │ abaracadabra.txt │ File │ │ 401 B │ a day ago │ neverrrr + 4 │ youshouldeatmorecereal.txt │ File │ │ 768 B │ a day ago │ neverrrr +━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━┷━━━━━━━━━━┷━━━━━━━━┷━━━━━━━━━━━┷━━━━━━━━━━ +``` + +```shell +> shells +━━━┯━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ + # │ │ name │ path +───┼───┼────────────┼──────────────────────────────── + 0 │ X │ filesystem │ /home/username/stuff/expr/stuff + 1 │ │ filesystem │ / +━━━┷━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +> shells | edit " " X | edit path / +━━━┯━━━┯━━━━━━━━━━━━┯━━━━━━ + # │ │ name │ path +───┼───┼────────────┼────── + 0 │ X │ filesystem │ / + 1 │ X │ filesystem │ / +━━━┷━━━┷━━━━━━━━━━━━┷━━━━━━ +```