diff --git a/src/_adr_generate_graph b/src/_adr_generate_graph index da6f154..5710946 100755 --- a/src/_adr_generate_graph +++ b/src/_adr_generate_graph @@ -28,7 +28,7 @@ eval "$($(dirname $0)/adr-config)" link_extension=.html - +template_type=$("$adr_bin_dir/_adr_type") while getopts e: arg do case "$arg" in @@ -45,7 +45,7 @@ shift $((OPTIND-1)) function index() { - basename "$1" | sed -e 's/-.*//' | sed -e 's/^0*//' + basename "$1" | sed -e 's/-.*//' | sed -e 's/^0//' | sed -e 's/^0//' | sed -e 's/^0//' } echo "digraph {" @@ -57,11 +57,23 @@ do title=$("$adr_bin_dir/_adr_title" $f) echo " _$n [label=\"$title\"; URL=\"$(basename $f .md)${link_extension}\"]" + case $template_type in + "") if [ $n -gt 1 ] then echo " _$(($n - 1)) -> _$n [style=\"dotted\"];" fi "$adr_bin_dir/_adr_links" "$f" | sed -E -e 's/^([0-9]+)=(.+)$/ _'"$n"' -> _\1 [label="\2"]/' + ;; + madr) + if [ $n -gt 0 ] + then + echo " _$(($n - 1)) -> _$n [style=\"dotted\"];" + fi + + "$adr_bin_dir/_adr_links" "$f" | sed -E -e 's/^([0-9]+)=(.+)$/ _'"$n"' -> _\1 [label="\2"]/' + ;; +esac done echo "}" diff --git a/src/adr-new b/src/adr-new index 1446e1d..bf62a59 100755 --- a/src/adr-new +++ b/src/adr-new @@ -102,26 +102,38 @@ then exit 1 fi +#newnum=0 + if [ -d $dstdir ] then - maxid=$(ls $dstdir | grep -Eo '^[0-9]+' | sed -e 's/^0*//' | sort -rn | head -1) +filecount=$(ls $dstdir | grep -Eo '^[0-9]+' | wc -l) + maxid=$(ls $dstdir | grep -Eo '^[0-9]+' | sed -e 's/^0//' | sed -e 's/^0//'| sed -e 's/^0//' | sort -rn | head -1) newnum=$(($maxid + 1)) + if [ -z $maxid ] + then + newnum_madr=0 + else + newnum_madr=$(($maxid + 1)) +fi else newnum=1 + newnum_madr=0 fi -newid=$(printf "%04d" $newnum) +if [ -z $template_type ] +then +newid=$(printf "%04d" $newnum) +else +newid=$(printf "%04d" $newnum_madr) +fi slug=$(echo -n $title | tr -Ccs [:alnum:] - | tr [:upper:] [:lower:] | sed -e 's/[^[:alnum:]]*$//' -e 's/^[^[:alnum:]]*//') dstfile=$dstdir/$newid-$slug.md date=${ADR_DATE:-$(date +%Y-%m-%d)} - mkdir -p $dstdir -type=$("$adr_bin_dir/_adr_type") - tempfile=$dstdir/.tempfile -case $type in +case $template_type in "") cat $template | sed \ -e "s|NUMBER|$newnum|" \ @@ -139,6 +151,7 @@ case $type in ;; esac +type=$("$adr_bin_dir/_adr_type") if [ -z $type ] then type_suffix="" diff --git a/src/init-madr.md b/src/init-madr.md index be7d1ed..ba5d1e9 100644 --- a/src/init-madr.md +++ b/src/init-madr.md @@ -7,7 +7,7 @@ Which format and structure should these records follow? ## Considered Options -* [MADR](https://adr.github.io/madr/) 2.0.3 - The Markdown Architectural Decision Records +* [MADR](https://adr.github.io/madr/) 2.1.0 - The Markdown Architectural Decision Records * [Michael Nygard's template](http://thinkrelevance.com/blog/2011/11/15/documenting-architecture-decisions) - The first incarnation of the term "ADR" * [Sustainable Architectural Decisions](https://www.infoq.com/articles/sustainable-architectural-design-decisions) - The Y-Statements * Other templates listed at @@ -15,11 +15,11 @@ Which format and structure should these records follow? ## Decision Outcome -Chosen option: "MADR 2.0.3", because +Chosen option: "MADR 2.1.0", because * Implicit assumptions should be made explicit. Design documentation is important to enable people understanding the decisions later on. See also [A rational design process: How and why to fake it](https://doi.org/10.1109/TSE.1986.6312940). * The MADR format is lean and fits our development style. * The MADR structure is comprehensible and facilitates usage & maintenance. * The MADR project is vivid. -* Version 2.0.3 is the latest one available when starting to document ADRs. +* Version 2.1.0 is the latest one available when starting to document ADRs. diff --git a/src/template-madr.md b/src/template-madr.md index e4659b4..5e00a27 100644 --- a/src/template-madr.md +++ b/src/template-madr.md @@ -27,11 +27,11 @@ Technical Story: [description | ticket/issue URL] Chosen option: "[option 1]", because [justification. e.g., only option, which meets k.o. criterion decision driver | which resolves force force | … | comes out best (see below)]. -Positive Consequences: +### Positive Consequences: * [e.g., improvement of quality attribute satisfaction, follow-up decisions required, …] * … -Negative consequences: +### Negative consequences: * [e.g., compromising quality attribute, follow-up decisions required, …] * … diff --git a/tests/create-first-record-madr.expected b/tests/create-first-record-madr.expected index 478898d..b39c20e 100644 --- a/tests/create-first-record-madr.expected +++ b/tests/create-first-record-madr.expected @@ -1,8 +1,8 @@ adr init docs madr -docs/0001-record-architecture-decisions.md +docs/0000-record-architecture-decisions.md adr new The First Decision -docs/0002-the-first-decision.md -cat docs/0002-the-first-decision.md +docs/0001-the-first-decision.md +cat docs/0001-the-first-decision.md # The First Decision * Status: Accepted @@ -32,11 +32,11 @@ Technical Story: [description | ticket/issue URL] Chosen option: "[option 1]", because [justification. e.g., only option, which meets k.o. criterion decision driver | which resolves force force | … | comes out best (see below)]. -Positive Consequences: +### Positive Consequences: * [e.g., improvement of quality attribute satisfaction, follow-up decisions required, …] * … -Negative consequences: +### Negative consequences: * [e.g., compromising quality attribute, follow-up decisions required, …] * … diff --git a/tests/create-first-record-madr.sh b/tests/create-first-record-madr.sh index b3271c5..8343e45 100644 --- a/tests/create-first-record-madr.sh +++ b/tests/create-first-record-madr.sh @@ -1,3 +1,3 @@ adr init docs madr adr new The First Decision -cat docs/0002-the-first-decision.md +cat docs/0001-the-first-decision.md diff --git a/tests/create-multiple-records-madr.expected b/tests/create-multiple-records-madr.expected index e37f041..d0d400b 100644 --- a/tests/create-multiple-records-madr.expected +++ b/tests/create-multiple-records-madr.expected @@ -1,17 +1,17 @@ adr init docs madr -docs/0001-record-architecture-decisions.md +docs/0000-record-architecture-decisions.md adr new First Decision -docs/0002-first-decision.md +docs/0001-first-decision.md adr new Second Decision -docs/0003-second-decision.md +docs/0002-second-decision.md adr new Third Decision -docs/0004-third-decision.md +docs/0003-third-decision.md ls docs -0001-record-architecture-decisions.md -0002-first-decision.md -0003-second-decision.md -0004-third-decision.md -head -8 docs/0003-second-decision.md +0000-record-architecture-decisions.md +0001-first-decision.md +0002-second-decision.md +0003-third-decision.md +head -8 docs/0002-second-decision.md # Second Decision * Status: Accepted @@ -20,7 +20,7 @@ head -8 docs/0003-second-decision.md Technical Story: [description | ticket/issue URL] -head -8 docs/0004-third-decision.md +head -8 docs/0003-third-decision.md # Third Decision * Status: Accepted diff --git a/tests/create-multiple-records-madr.sh b/tests/create-multiple-records-madr.sh index 58b6a88..fbd381b 100644 --- a/tests/create-multiple-records-madr.sh +++ b/tests/create-multiple-records-madr.sh @@ -3,5 +3,5 @@ adr new First Decision adr new Second Decision adr new Third Decision ls docs -head -8 docs/0003-second-decision.md -head -8 docs/0004-third-decision.md +head -8 docs/0002-second-decision.md +head -8 docs/0003-third-decision.md diff --git a/tests/generate-contents-madr.expected b/tests/generate-contents-madr.expected index 179048f..a6ddae1 100644 --- a/tests/generate-contents-madr.expected +++ b/tests/generate-contents-madr.expected @@ -1,12 +1,12 @@ adr init docs madr -docs/0001-record-architecture-decisions.md +docs/0000-record-architecture-decisions.md adr new First Decision -docs/0002-first-decision.md +docs/0001-first-decision.md adr new Second Decision -docs/0003-second-decision.md +docs/0002-second-decision.md adr generate toc # Architecture Decision Records -* [Use Markdown Architectural Decision Records](0001-record-architecture-decisions.md) -* [First Decision](0002-first-decision.md) -* [Second Decision](0003-second-decision.md) +* [Use Markdown Architectural Decision Records](0000-record-architecture-decisions.md) +* [First Decision](0001-first-decision.md) +* [Second Decision](0002-second-decision.md) diff --git a/tests/generate-graph-madr.expected b/tests/generate-graph-madr.expected index 88070ad..8a76582 100644 --- a/tests/generate-graph-madr.expected +++ b/tests/generate-graph-madr.expected @@ -1,46 +1,46 @@ adr init docs madr -docs/0001-record-architecture-decisions.md +docs/0000-record-architecture-decisions.md adr new An idea that seems good at the time -docs/0002-an-idea-that-seems-good-at-the-time.md -adr new -s 2 A better idea -docs/0003-a-better-idea.md +docs/0001-an-idea-that-seems-good-at-the-time.md +adr new -s 1 A better idea +docs/0002-a-better-idea.md adr new This will work -docs/0004-this-will-work.md +docs/0003-this-will-work.md adr new -s 3 The end -docs/0005-the-end.md +docs/0004-the-end.md # with default extension in links adr generate graph digraph { node [shape=plaintext]; - _1 [label="Use Markdown Architectural Decision Records"; URL="0001-record-architecture-decisions.html"] - _2 [label="An idea that seems good at the time"; URL="0002-an-idea-that-seems-good-at-the-time.html"] + _0 [label="Use Markdown Architectural Decision Records"; URL="0000-record-architecture-decisions.html"] + _1 [label="An idea that seems good at the time"; URL="0001-an-idea-that-seems-good-at-the-time.html"] + _0 -> _1 [style="dotted"]; + _1 -> _2 [label="Superceded by"] + _2 [label="A better idea"; URL="0002-a-better-idea.html"] _1 -> _2 [style="dotted"]; - _2 -> _3 [label="Superceded by"] - _3 [label="A better idea"; URL="0003-a-better-idea.html"] + _2 -> _1 [label="Supercedes"] + _3 [label="This will work"; URL="0003-this-will-work.html"] _2 -> _3 [style="dotted"]; - _3 -> _2 [label="Supercedes"] - _3 -> _5 [label="Superceded by"] - _4 [label="This will work"; URL="0004-this-will-work.html"] + _3 -> _4 [label="Superceded by"] + _4 [label="The end"; URL="0004-the-end.html"] _3 -> _4 [style="dotted"]; - _5 [label="The end"; URL="0005-the-end.html"] - _4 -> _5 [style="dotted"]; - _5 -> _3 [label="Supercedes"] + _4 -> _3 [label="Supercedes"] } # with specified extension in links adr generate graph -e .xxx digraph { node [shape=plaintext]; - _1 [label="Use Markdown Architectural Decision Records"; URL="0001-record-architecture-decisions.xxx"] - _2 [label="An idea that seems good at the time"; URL="0002-an-idea-that-seems-good-at-the-time.xxx"] + _0 [label="Use Markdown Architectural Decision Records"; URL="0000-record-architecture-decisions.xxx"] + _1 [label="An idea that seems good at the time"; URL="0001-an-idea-that-seems-good-at-the-time.xxx"] + _0 -> _1 [style="dotted"]; + _1 -> _2 [label="Superceded by"] + _2 [label="A better idea"; URL="0002-a-better-idea.xxx"] _1 -> _2 [style="dotted"]; - _2 -> _3 [label="Superceded by"] - _3 [label="A better idea"; URL="0003-a-better-idea.xxx"] + _2 -> _1 [label="Supercedes"] + _3 [label="This will work"; URL="0003-this-will-work.xxx"] _2 -> _3 [style="dotted"]; - _3 -> _2 [label="Supercedes"] - _3 -> _5 [label="Superceded by"] - _4 [label="This will work"; URL="0004-this-will-work.xxx"] + _3 -> _4 [label="Superceded by"] + _4 [label="The end"; URL="0004-the-end.xxx"] _3 -> _4 [style="dotted"]; - _5 [label="The end"; URL="0005-the-end.xxx"] - _4 -> _5 [style="dotted"]; - _5 -> _3 [label="Supercedes"] + _4 -> _3 [label="Supercedes"] } diff --git a/tests/generate-graph-madr.sh b/tests/generate-graph-madr.sh index ba057de..a24a988 100644 --- a/tests/generate-graph-madr.sh +++ b/tests/generate-graph-madr.sh @@ -1,6 +1,6 @@ adr init docs madr adr new An idea that seems good at the time -adr new -s 2 A better idea +adr new -s 1 A better idea adr new This will work adr new -s 3 The end # with default extension in links diff --git a/tests/init-repository-madr.expected b/tests/init-repository-madr.expected index b827cdb..e53ed15 100644 --- a/tests/init-repository-madr.expected +++ b/tests/init-repository-madr.expected @@ -1,8 +1,8 @@ adr init docs madr -docs/0001-record-architecture-decisions.md +docs/0000-record-architecture-decisions.md ls docs -0001-record-architecture-decisions.md -cat docs/0001-record-architecture-decisions.md +0000-record-architecture-decisions.md +cat docs/0000-record-architecture-decisions.md # Use Markdown Architectural Decision Records ## Context and Problem Statement @@ -12,7 +12,7 @@ Which format and structure should these records follow? ## Considered Options -* [MADR](https://adr.github.io/madr/) 2.0.3 - The Markdown Architectural Decision Records +* [MADR](https://adr.github.io/madr/) 2.1.0 - The Markdown Architectural Decision Records * [Michael Nygard's template](http://thinkrelevance.com/blog/2011/11/15/documenting-architecture-decisions) - The first incarnation of the term "ADR" * [Sustainable Architectural Decisions](https://www.infoq.com/articles/sustainable-architectural-design-decisions) - The Y-Statements * Other templates listed at @@ -20,11 +20,11 @@ Which format and structure should these records follow? ## Decision Outcome -Chosen option: "MADR 2.0.3", because +Chosen option: "MADR 2.1.0", because * Implicit assumptions should be made explicit. Design documentation is important to enable people understanding the decisions later on. See also [A rational design process: How and why to fake it](https://doi.org/10.1109/TSE.1986.6312940). * The MADR format is lean and fits our development style. * The MADR structure is comprehensible and facilitates usage & maintenance. * The MADR project is vivid. -* Version 2.0.3 is the latest one available when starting to document ADRs. +* Version 2.1.0 is the latest one available when starting to document ADRs. diff --git a/tests/init-repository-madr.sh b/tests/init-repository-madr.sh index 1b2d044..af1aea6 100644 --- a/tests/init-repository-madr.sh +++ b/tests/init-repository-madr.sh @@ -1,3 +1,3 @@ adr init docs madr ls docs -cat docs/0001-record-architecture-decisions.md +cat docs/0000-record-architecture-decisions.md diff --git a/tests/linking-madr.expected b/tests/linking-madr.expected index a67c3d1..865a53d 100644 --- a/tests/linking-madr.expected +++ b/tests/linking-madr.expected @@ -1,29 +1,29 @@ adr init docs madr -docs/0001-record-architecture-decisions.md +docs/0000-record-architecture-decisions.md adr new First Record -docs/0002-first-record.md +docs/0001-first-record.md adr new Second Record -docs/0003-second-record.md +docs/0002-second-record.md adr new Third Record -docs/0004-third-record.md -adr link 4 Amends 2 "Amended by" -adr link 4 Clarifies 3 "Clarified by" -tail -5 docs/0002-first-record.md +docs/0003-third-record.md +adr link 3 Amends 1 "Amended by" +adr link 3 Clarifies 2 "Clarified by" +tail -5 docs/0001-first-record.md ## Links * [Link type] [Link to ADR] * … -* Amended by [Third Record](0004-third-record.md) -tail -5 docs/0003-second-record.md +* Amended by [Third Record](0003-third-record.md) +tail -5 docs/0002-second-record.md ## Links * [Link type] [Link to ADR] * … -* Clarified by [Third Record](0004-third-record.md) -tail -6 docs/0004-third-record.md +* Clarified by [Third Record](0003-third-record.md) +tail -6 docs/0003-third-record.md ## Links * [Link type] [Link to ADR] * … -* Amends [First Record](0002-first-record.md) -* Clarifies [Second Record](0003-second-record.md) +* Amends [First Record](0001-first-record.md) +* Clarifies [Second Record](0002-second-record.md) diff --git a/tests/linking-madr.sh b/tests/linking-madr.sh index dcfb101..459038a 100644 --- a/tests/linking-madr.sh +++ b/tests/linking-madr.sh @@ -2,8 +2,8 @@ adr init docs madr adr new First Record adr new Second Record adr new Third Record -adr link 4 Amends 2 "Amended by" -adr link 4 Clarifies 3 "Clarified by" -tail -5 docs/0002-first-record.md -tail -5 docs/0003-second-record.md -tail -6 docs/0004-third-record.md +adr link 3 Amends 1 "Amended by" +adr link 3 Clarifies 2 "Clarified by" +tail -5 docs/0001-first-record.md +tail -5 docs/0002-second-record.md +tail -6 docs/0003-third-record.md diff --git a/tests/linking-new-records-madr.expected b/tests/linking-new-records-madr.expected index afc8da8..08f5466 100644 --- a/tests/linking-new-records-madr.expected +++ b/tests/linking-new-records-madr.expected @@ -1,27 +1,27 @@ adr init docs madr -docs/0001-record-architecture-decisions.md +docs/0000-record-architecture-decisions.md adr new First Record -docs/0002-first-record.md +docs/0001-first-record.md adr new Second Record -docs/0003-second-record.md -adr new -l "2:Amends:Amended by" -l "3:Clarifies:Clarified by" Third Record -docs/0004-third-record.md -tail -5 docs/0002-first-record.md +docs/0002-second-record.md +adr new -l "1:Amends:Amended by" -l "2:Clarifies:Clarified by" Third Record +docs/0003-third-record.md +tail -5 docs/0001-first-record.md ## Links * [Link type] [Link to ADR] * … -* Amended by [Third Record](0004-third-record.md) -tail -5 docs/0003-second-record.md +* Amended by [Third Record](0003-third-record.md) +tail -5 docs/0002-second-record.md ## Links * [Link type] [Link to ADR] * … -* Clarified by [Third Record](0004-third-record.md) -tail -6 docs/0004-third-record.md +* Clarified by [Third Record](0003-third-record.md) +tail -6 docs/0003-third-record.md ## Links * [Link type] [Link to ADR] * … -* Amends [First Record](0002-first-record.md) -* Clarifies [Second Record](0003-second-record.md) +* Amends [First Record](0001-first-record.md) +* Clarifies [Second Record](0002-second-record.md) diff --git a/tests/linking-new-records-madr.sh b/tests/linking-new-records-madr.sh index 3ae9319..8a724f1 100644 --- a/tests/linking-new-records-madr.sh +++ b/tests/linking-new-records-madr.sh @@ -1,7 +1,7 @@ adr init docs madr adr new First Record adr new Second Record -adr new -l "2:Amends:Amended by" -l "3:Clarifies:Clarified by" Third Record -tail -5 docs/0002-first-record.md -tail -5 docs/0003-second-record.md -tail -6 docs/0004-third-record.md +adr new -l "1:Amends:Amended by" -l "2:Clarifies:Clarified by" Third Record +tail -5 docs/0001-first-record.md +tail -5 docs/0002-second-record.md +tail -6 docs/0003-third-record.md diff --git a/tests/list-records-madr.expected b/tests/list-records-madr.expected index 9818fe3..4d6c51a 100644 --- a/tests/list-records-madr.expected +++ b/tests/list-records-madr.expected @@ -1,17 +1,17 @@ adr list The doc/adr directory does not exist adr init docs madr -docs/0001-record-architecture-decisions.md +docs/0000-record-architecture-decisions.md adr list -docs/0001-record-architecture-decisions.md +docs/0000-record-architecture-decisions.md adr new first -docs/0002-first.md +docs/0001-first.md adr list -docs/0001-record-architecture-decisions.md -docs/0002-first.md +docs/0000-record-architecture-decisions.md +docs/0001-first.md adr new second -docs/0003-second.md +docs/0002-second.md adr list -docs/0001-record-architecture-decisions.md -docs/0002-first.md -docs/0003-second.md +docs/0000-record-architecture-decisions.md +docs/0001-first.md +docs/0002-second.md diff --git a/tests/supercede-existing-adr-madr.expected b/tests/supercede-existing-adr-madr.expected index c482e43..8f7f0cc 100644 --- a/tests/supercede-existing-adr-madr.expected +++ b/tests/supercede-existing-adr-madr.expected @@ -1,13 +1,13 @@ adr init docs madr -docs/0001-record-architecture-decisions.md +docs/0000-record-architecture-decisions.md adr new First Record -docs/0002-first-record.md -adr new -s 2 Second Record -docs/0003-second-record.md -head -10 docs/0002-first-record.md +docs/0001-first-record.md +adr new -s 1 Second Record +docs/0002-second-record.md +head -10 docs/0001-first-record.md # First Record -* Status: Superceded by [Second Record](0003-second-record.md) +* Status: Superceded by [Second Record](0002-second-record.md) * Deciders: [list everyone involved in the decision] * Date: 1992-01-12 @@ -15,9 +15,9 @@ Technical Story: [description | ticket/issue URL] ## Context and Problem Statement -tail -5 docs/0003-second-record.md +tail -5 docs/0002-second-record.md ## Links * [Link type] [Link to ADR] * … -* Supercedes [First Record](0002-first-record.md) +* Supercedes [First Record](0001-first-record.md) diff --git a/tests/supercede-existing-adr-madr.sh b/tests/supercede-existing-adr-madr.sh index a466491..36ffc9b 100644 --- a/tests/supercede-existing-adr-madr.sh +++ b/tests/supercede-existing-adr-madr.sh @@ -1,5 +1,5 @@ adr init docs madr adr new First Record -adr new -s 2 Second Record -head -10 docs/0002-first-record.md -tail -5 docs/0003-second-record.md +adr new -s 1 Second Record +head -10 docs/0001-first-record.md +tail -5 docs/0002-second-record.md diff --git a/tests/supercede-multiple-adrs-madr.expected b/tests/supercede-multiple-adrs-madr.expected index efd8908..e95dab1 100644 --- a/tests/supercede-multiple-adrs-madr.expected +++ b/tests/supercede-multiple-adrs-madr.expected @@ -1,27 +1,27 @@ adr init docs madr -docs/0001-record-architecture-decisions.md +docs/0000-record-architecture-decisions.md adr new First Record -docs/0002-first-record.md +docs/0001-first-record.md adr new Second Record -docs/0003-second-record.md -adr new -s 2 -s 3 Third Record -docs/0004-third-record.md -head -5 docs/0002-first-record.md +docs/0002-second-record.md +adr new -s 1 -s 2 Third Record +docs/0003-third-record.md +head -5 docs/0001-first-record.md # First Record -* Status: Superceded by [Third Record](0004-third-record.md) +* Status: Superceded by [Third Record](0003-third-record.md) * Deciders: [list everyone involved in the decision] * Date: 1992-01-12 -head -5 docs/0003-second-record.md +head -5 docs/0002-second-record.md # Second Record -* Status: Superceded by [Third Record](0004-third-record.md) +* Status: Superceded by [Third Record](0003-third-record.md) * Deciders: [list everyone involved in the decision] * Date: 1992-01-12 -tail -6 docs/0004-third-record.md +tail -6 docs/0003-third-record.md ## Links * [Link type] [Link to ADR] * … -* Supercedes [First Record](0002-first-record.md) -* Supercedes [Second Record](0003-second-record.md) +* Supercedes [First Record](0001-first-record.md) +* Supercedes [Second Record](0002-second-record.md) diff --git a/tests/supercede-multiple-adrs-madr.sh b/tests/supercede-multiple-adrs-madr.sh index c5bd7f7..171f766 100644 --- a/tests/supercede-multiple-adrs-madr.sh +++ b/tests/supercede-multiple-adrs-madr.sh @@ -1,7 +1,7 @@ adr init docs madr adr new First Record adr new Second Record -adr new -s 2 -s 3 Third Record -head -5 docs/0002-first-record.md -head -5 docs/0003-second-record.md -tail -6 docs/0004-third-record.md +adr new -s 1 -s 2 Third Record +head -5 docs/0001-first-record.md +head -5 docs/0002-second-record.md +tail -6 docs/0003-third-record.md