Canpolat.Talo
0.1.0-beta-10
See the version list below for details.
dotnet tool install --global Canpolat.Talo --version 0.1.0-beta-10
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local Canpolat.Talo --version 0.1.0-beta-10
#tool dotnet:?package=Canpolat.Talo&version=0.1.0-beta-10&prerelease
nuke :add-package Canpolat.Talo --version 0.1.0-beta-10
talo
talo is a CLI tool to manage your ADRs, RFCs, software design documents and more.
With talo, you can create, update, list, and export your documents. It supports ADRs (Architecture Decision Records) and RFCs (Request for Comments) out of the box. But you can define your own document types.
Listing and export features set talo apart from similar tools.
If you are not familiar with ADRs or RFCs, this blog post offers a brief introduction: Documenting Design Decisions using RFCs and ADRs
<div align="center" style="text-align: center;">
<br/>
<img style="vertical-align:middle" alt="Runs on Linux" src="./docs/assets/tux.svg" height=32 /> <img style="vertical-align:middle" alt="Runs on Windows" src="./docs/assets/windows-logo.svg" height=32 /> <br/> Runs on Linux and Windows
Features • Demo • Installation • Usage • Samples • Custom templates
</div>
Features
- Supports ADRs and RFCs out of the box. Comes with built-in templates so you can start writing immediately (you can also use your own templates, if you so desire).
- Template support: You can use your own templates for all document types (including the built-in ones).
- Supports custom document types: You are not limited to ADR and RFC. You can create and use your own document types and talo will manage them for you too.
- Support for updating document status: You can use the
revise
command to update the status of a document. It will keep the version table tidy. Alternatively, you can use thelink
command to link documents to each other. See examples below. - Listing: You can list all your documents with their latest statuses.
- Exporting: You can export your documents to HTML. talo will create an
index.html
document that can be used to browse the documents. It will also create links between documents whenever possible. See Export section below.
Demo
The screencast below (2m40s) demonstrates a subset of talo's functionality for ADR document type. All document types have the same features. So, you can perform these operations on any document type.
If you want to try it yourself, you can use the annotated script at ./docs/demo.md.
Installation
As dotnet tool
talo is released as a dotnet tool. If you already have .NET Runtime 8.0 or later, issue the following command to install talo globally:
dotnet tool install --global Canpolat.Talo
As single executable
Single executables for Linux and Windows are available under releases. You can download the binary executable from under Assets and start using talo.
Usage
Initialization
You can initialize document types selectively. You don't need to initialize the types you are not interested in.
Initialize ADR
You can initialize your ADR workflow, by issuing the following command:
talo init adr
If you want to specify a directory location for your ADRs, use the
--location
option:
talo init adr --location docs/adr
There is also a --template-path
option if you want to use your own template
instead of the built-in one:
talo init adr --location docs/adr --template-path templates/adr.md
Check help for details:
talo init adr --help
Initialize RFC
Initialization for RFC is the same as ADR. By replacing adr
with rfc
in the above section, you can initialize your RFC workflow:
talo init adr --location docs/rfc
Bare initialization
If you don't want talo to initialize any of the built-in document types,
you can use init
without any sub-commands:
talo init
This will create a configuration file (.talo
) at the current working
directory. You can then configure your own document types and initialize
them. See below for more information.
Listing your documents
Listing ADRs
talo can list all your documents (including your custom document types). To list all registered document types, issue the following command:
talo list
If you want to see all documents of a certain type, you can use the associated sub-command for that. For example, to list all your ADRs, you can try:
talo list adr
Creating new documents
To add new documents, you can use the add
command. For example:
talo add adr --title "Use event-based architecture" --status "Accepted"
If you want to apply a specific custom template to a single document during
creation, you can use the --from-template
option.
talo add adr --title "Use GPL-3.0-or-later as license" --status "Accepted" --from-template "templates/differentadr.md"
Updating status of a document
Document statuses are stored in a table in the document. If you use talo to update the status, it will also add a timestamp to the table for reference.
The revise
command can be used to update document status. You can pass any text
as the new status.
talo revise adr --number 2 --status "Obsolete"
This will add status "Obsolete" as the last status of ADR number 2.
Linking documents to each other
There are two ways to link two documents to each other.
The first is when creating a new document. talo add
has the --supersedes
option
to indicate that the new document is superseding an older one:
talo add adr --title "Use PostgresSQL for all database needs" --status "Accepted" --supersedes 3
The second method is more flexible as it allows you to specify the status text you want to use:
talo link adr --source 7 --source-status "Amends" --destination 6 --destination-status "Amended by"
After this command, document number 7
will get a new status Amends ADR0006
and
document number 6
will get Amended by ADR0007
.
Export
You can use the export
command to export your documents to HTML. This can be useful
if you want to deploy them to a web site so that a wider audience can access them.
talo export --help
By default, it will export all documents. But you can specify types to limit the output:
talo export --types adr
This will create HTMl files at ./export/adr
(relative to .talo
file).
Note that talo will create an index.html
file to make browsing easier. It will
also create links between documents whenever possible (for example, a document will
have a link to the document that supersedes it, and vice versa).
Configuration
The config
command provides a means to configure the existing document types as well
as create new ones.
If you want to change the directory or template location of ADRs, you can do so by:
talo config adr --location docs/newlocation ----template-path templates/differentadr.md
Note that this will only update the configuration and the configuration will impact only new documents. It will not move any existing files from old location to new. Nor will it update the old documents with the new template.
Create a custom document type
To create a new document type you need to provide a name (all-lowercase), a location and a template path. You can also specify a description. For example:
talo config add --name "prd" --location "docs/prd" --template-path "templates/prd.md" --description "Product Requirement Document"
After this, talo list
command will list prd
among the supported document types. You
can immediately start using this new sub-command:
talo add prd --title "Shopping cart experience" --status "Under review"
And list:
talo list prd
You now have a new document type that has the same capabilities as the built-in types ADR and RFC.
Samples
The samples
directory contains some alternatives to built-in templates. Built-in
templates are also included for convenience (in case you want to tweak them to your
liking).
Custom templates
Please pay attention the following points when creating a custom template. Once these are satisfied, talo will be happy to help.
Title line
talo uses the title line to populate lists and collect metadata. For that reason, the template needs to comply with the expected format. Make sure to use this as the first line in your template:
# {{SEQUENCE-NUMBER}}. {{TITLE}}
Status section
talo uses the status section in the document to read and write status information. Make sure to include it towards the top of your document:
## Status
| Status | Time |
|--------------------------|--------------------|
| {{STATUS}} | {{TIME}} |
Credits
- To convert markdown files to HTML, talo uses markdig with all advanced extensions activated.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
This package has no dependencies.
Version | Downloads | Last updated |
---|---|---|
0.4.0 | 138 | 6/20/2024 |
0.3.0 | 97 | 6/15/2024 |
0.2.1 | 841 | 1/7/2024 |
0.2.0 | 954 | 1/7/2024 |
0.2.0-beta-01 | 839 | 1/7/2024 |
0.1.0-beta-8 | 860 | 1/6/2024 |
0.1.0-beta-7 | 812 | 1/5/2024 |
0.1.0-beta-6 | 871 | 1/5/2024 |
0.1.0-beta-5 | 891 | 1/5/2024 |
0.1.0-beta-4 | 884 | 1/3/2024 |
0.1.0-beta-3 | 895 | 12/29/2023 |
0.1.0-beta-2 | 864 | 12/29/2023 |
0.1.0-beta-10 | 850 | 1/7/2024 |