From 24d431d98596d8ffb0990b540f044ba7c6725383 Mon Sep 17 00:00:00 2001 From: 0xSage Date: Wed, 18 Oct 2023 17:13:59 +0800 Subject: [PATCH] refactor: adr makefile --- Makefile | 5 ----- adr/Makefile | 11 +++++++++++ adr/adr-005-model-installation-ux.md | 29 ++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 5 deletions(-) delete mode 100644 Makefile create mode 100644 adr/Makefile create mode 100644 adr/adr-005-model-installation-ux.md diff --git a/Makefile b/Makefile deleted file mode 100644 index ce640d4fe..000000000 --- a/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -newadr: - @echo "Initiating an ADR..." - @read -p "Enter ADR number (e.g. 001): " number; \ - read -p "Enter ADR title: " title; \ - cp $(CURDIR)/adr/adr-template.md $(CURDIR)/adr/adr-$${number}-$${title}.md \ No newline at end of file diff --git a/adr/Makefile b/adr/Makefile new file mode 100644 index 000000000..83029712f --- /dev/null +++ b/adr/Makefile @@ -0,0 +1,11 @@ +newadr: + @echo "Initiating an ADR..." + @last_number=$$(ls $(CURDIR)/adr-[0-9][0-9][0-9]-* | sort -V | tail -n 1 | cut -d '-' -f 2); \ + next_number=$$(printf "%03d" $$(( $$last_number + 1 ))); \ + read -p "Enter ADR title: " title; \ + cp $(CURDIR)/adr-template.md $(CURDIR)/adr-$$next_number-$$title.md +# newadr: +# @echo "Initiating an ADR..." +# @read -p "Enter ADR number (e.g. 001): " number; \ +# read -p "Enter ADR title: " title; \ +# cp $(CURDIR)/adr-template.md $(CURDIR)/adr-$${number}-$${title}.md \ No newline at end of file diff --git a/adr/adr-005-model-installation-ux.md b/adr/adr-005-model-installation-ux.md new file mode 100644 index 000000000..b3dd92105 --- /dev/null +++ b/adr/adr-005-model-installation-ux.md @@ -0,0 +1,29 @@ +# ADR {ADR-NUM}: {TITLE} + +## Changelog +- {date}: {changelog} + +## Authors +- @usernames + +## Status + +What is the status, such as proposed, accepted, rejected, deprecated, superseded, etc.? + +{Proposed|Accepted|Rejected} + +## Context + +What is the issue that we're seeing that is motivating this decision or change? + +## Decision + +What is the change that we're proposing and/or doing? + +## Consequences + +What becomes easier or more difficult to do because of this change? + +## Alternatives + +## Reference