all repos — h3rald @ 21fefaa29ae078d43d49cf236d0d328e99843c96

The sources of https://h3rald.com

Reviewed scripts.
h3rald h3rald@h3rald.com
Fri, 23 Feb 2024 14:02:00 +0100
commit

21fefaa29ae078d43d49cf236d0d328e99843c96

parent

3823f20ada8de57b8a16651ddb10048224bbe828

2 files changed, 11 insertions(+), 12 deletions(-)

jump to
M scripts/article.minscripts/article.min

@@ -13,11 +13,12 @@ filelist (filename "(.+)\..+$" search 1 get) map ident in? not :valid-file

valid-regexp valid-file and ) ^validate - (valid-id not) ( "ID" ask @ident ident validate @valid-id - (valid-id not) ("ID must not be already used and it must contain only lowercase letters, numbers, or -" warn) when + (valid-id not) + ("ID must not be already used and it must contain only lowercase letters, numbers, or -" warn) + when ) while "Title" ask @title

@@ -31,13 +32,12 @@ content-type: article

timestamp: $4 ----- -<hr /> -" (ident title subtitle ts) => % :metadata +" (ident title subtitle ts) =% :metadata -metadata puts! ("Create article?" confirm) -( - (ident ".md") => "" join :fn - (. "contents" "articles" fn) => "/" join :path - metadata path fwrite -) when + ( + (ident ".md") => "" join :fn + (. "contents" "articles" fn) => "/" join :path + metadata path fwrite + ) +when
M scripts/project.minscripts/project.min

@@ -25,7 +25,7 @@

"Title" ask @title "Subtitle" ask @subtitle "Summary" ask @summary -"version" ask @release +"Version" ask @release "----- id: $1

@@ -41,7 +41,6 @@ download: \"https://github.com/h3rald/$1/releases/download/\"

----- " (ident title subtitle summary release) =% :metadata -metadata puts! ("Create project?" confirm) ( (ident ".md") => "" join :fn