Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Commit

Permalink
update readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
keremciu committed Apr 14, 2021
1 parent 4946327 commit 30a5b3a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@ easy CLI for ADR docs
* [Commands](#commands)
<!-- tocstop -->
# Usage

You can install it globally (`npm install -g adr-tool`) or use it with [npx](https://docs.npmjs.com/cli/v7/commands/npx)

<!-- usage -->
```sh-session
$ npm install -g adr-tool
$ adr-tool COMMAND
running command...
$ adr-tool (-v|--version|version)
adr-tool/0.0.5 darwin-x64 node-v14.16.0
$ adr-tool --help [COMMAND]
$ npx adr-tool init
./docs/adr folder is created!
USAGE
$ adr-tool COMMAND
$ npx adr-tool create 'Use Markdown Architectural Decision Records'
...
```
<!-- usagestop -->
Expand Down
2 changes: 0 additions & 2 deletions src/commands/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ a decision created on ./docs/adr/0001-use-adr-tool.md

const tocFileRaw = fs.readFileSync(tocFilePath, 'utf8')
const tocFileArray = tocFileRaw.split('\n')

const tocString = `* [ADR-${fileIndex}](${filename}.md) - ${args.title}`

const tocStopIndex = tocFileArray.indexOf('<!-- tocstop -->')
tocFileArray.splice(tocStopIndex - 1, 0, tocString)

Expand Down

0 comments on commit 30a5b3a

Please sign in to comment.