Skip to content

Commit

Permalink
refactor: adr makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSage committed Oct 18, 2023
1 parent 9bf3be1 commit 24d431d
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Makefile

This file was deleted.

11 changes: 11 additions & 0 deletions adr/Makefile
Original file line number Diff line number Diff line change
@@ -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
29 changes: 29 additions & 0 deletions adr/adr-005-model-installation-ux.md
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 24d431d

Please sign in to comment.