From 2a8e3563373fe34f53e81ee8fd6ef1743fed2b42 Mon Sep 17 00:00:00 2001 From: Lukas Reineke Date: Wed, 31 Aug 2022 12:46:53 +0900 Subject: [PATCH] Version 0.2.0 - Add support for `restructuredtext` --- Cargo.lock | 7 ++++--- Cargo.toml | 4 ++-- README.md | 2 +- src/main.rs | 6 +++--- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 922ddb8..e24db56 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -45,7 +45,7 @@ dependencies = [ [[package]] name = "cbfmt" -version = "0.1.4" +version = "0.2.0" dependencies = [ "atty", "cc", @@ -532,8 +532,9 @@ dependencies = [ [[package]] name = "tree-sitter-rst" -version = "0.0.1" -source = "git+https://github.com/zegervdv/tree-sitter-rst?branch=rust-lib-upstep#462ef5c2d21025de0347d9fc08aeefb11e8f0903" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60c2a196e53197c388b9c06400156dcb89bf5da6ad9c9036aca2ba4d667d71bb" dependencies = [ "cc", "tree-sitter", diff --git a/Cargo.toml b/Cargo.toml index ba96a1d..c442a5d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "cbfmt" -version = "0.1.4" +version = "0.2.0" edition = "2021" -description = "A tool to format codeblocks inside markdown and org documents" +description = "A tool to format codeblocks inside markdown, org, and restructuredtext documents" repository = "https://github.com/lukas-reineke/cbfmt" categories = ["development-tools"] keywords = ["format", "markdown", "org", "codeblock"] diff --git a/README.md b/README.md index 73f8bed..207593a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # cbfmt (codeblock format) -A tool to format codeblocks inside markdown and org documents. +A tool to format codeblocks inside markdown, org, and restructuredtext documents. It iterates over all codeblocks, and formats them with the tool(s) specified for the language of the block. diff --git a/src/main.rs b/src/main.rs index c42814a..b258019 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,9 +18,9 @@ async fn main() { let mut app = App::new("cbfmt") - .version("0.1.4") + .version("0.2.0") .author("Lukas Reineke ") - .about("A tool to format codeblocks inside markdown and org documents.\nIt iterates over all codeblocks, and formats them with the tool(s) specified for the language of the block.") + .about("A tool to format codeblocks inside markdown, org, and restructuredtext documents.\nIt iterates over all codeblocks, and formats them with the tool(s) specified for the language of the block.") .arg( Arg::with_name("config") .long("config") @@ -58,7 +58,7 @@ async fn main() { Arg::with_name("parser") .short('p') .long("parser") - .value_name("markdown|org") + .value_name("markdown|org|restructuredtext") .help("Sets the parser to use.") .takes_value(true), )