From 1e9c5de56831977b3ca9c74076b543c0f04c05ca Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Thu, 30 May 2024 21:08:39 +0200 Subject: [PATCH] Extend manage script [ci skip] --- manage | 8 ++++++++ readme.md | 3 --- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/manage b/manage index a3ca20f..16e3d2b 100755 --- a/manage +++ b/manage @@ -43,6 +43,14 @@ case "$1" in fi create_new_song ;; + edit) + if [ "$#" -eq 2 ]; then + $EDITOR "content/$2/$2.cho" + else + echo -e "Missing song name\n" + usage + fi + ;; help) usage ;; diff --git a/readme.md b/readme.md index 38cad7f..50bc451 100644 --- a/readme.md +++ b/readme.md @@ -40,9 +40,6 @@ The `manage` shell script lets you do basic song management and saves you some manual labour. Simply run the script itself or invoke `help` to get a list of all available commands. -For now the script only supports creating new songs, which it does in an -interactive way by asking for important data and filling all needed templates. - ``` ./manage help Usage: ./manage [options]