Skip to content

Commit

Permalink
Make title mandatory
Browse files Browse the repository at this point in the history
- fix doc
- bump to v0.0.4
- title is now mandatory
  • Loading branch information
chevdor committed Sep 5, 2023
1 parent 46009cd commit 95d5021
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace.package]
version = "0.0.3"
version = "0.0.4"
authors = ["chevdor <[email protected]>", "Wilfried Kopp <[email protected]>"]
edition = "2021"
homepage = "https://github.com/paritytech/prdoc"
Expand Down
32 changes: 26 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,15 @@ above.

## Features

- provide the `prdoc` user schema - generate new documents - scan for `prdoc` in a folder - check `prdoc` files -
load/aggregate `prdoc` files
- provide the `prdoc` user schema

- generate new documents

- scan for `prdoc` in a folder

- check `prdoc` files

- load/aggregate `prdoc` files

## Schemas

Expand All @@ -45,12 +52,20 @@ In VScode, open your user settings and ensure you have the following section:
"/path/of/schema/schema_user.json": "*.prdoc"
},

You also need:

"files.associations": {
"*.prdoc": "yaml",
},

Should initially have created the file with another extension such as `.txt`, make sure to change the format to
`YAML` and the right schema should then be picked up.

## Usage

Definition of the cli flags and subcommands
prdoc is a cli utility to generate, check and load prdoc files.

More at https://github.com/paritytech/prdoc

Usage: prdoc [OPTIONS] [COMMAND]

Expand All @@ -63,9 +78,14 @@ Should initially have created the file with another extension such as `.txt`, ma
help Print this message or the help of the given subcommand(s)

Options:
-v, --version Show the version
-j, --json Output as json
-h, --help Print help
-v, --version
Show the version

-j, --json
Output as json

-h, --help
Print help (see a summary with '-h')

### Schema

Expand Down
7 changes: 5 additions & 2 deletions README_src.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ above.

== Features

- provide the `prdoc` user schema - generate new documents - scan for `prdoc` in a folder - check `prdoc` files -
load/aggregate `prdoc` files
- provide the `prdoc` user schema
- generate new documents
- scan for `prdoc` in a folder
- check `prdoc` files
- load/aggregate `prdoc` files

include::doc/index.adoc[]

Expand Down
4 changes: 3 additions & 1 deletion cli/src/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ use clap::{crate_authors, crate_version, ColorChoice, Parser, Subcommand};
use prdoclib::{common::PRNumber, title::Title};
use std::path::PathBuf;

/// Definition of the cli flags and subcommands
/// prdoc is a cli utility to generate, check and load prdoc files.
///
/// More at <https://github.com/paritytech/prdoc>
#[derive(Parser, Debug)]
#[clap(color=ColorChoice::Auto, disable_version_flag = true, arg_required_else_help = true )]
pub struct Opts {
Expand Down
15 changes: 11 additions & 4 deletions doc/cli/usage.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Definition of the cli flags and subcommands
prdoc is a cli utility to generate, check and load prdoc files.

More at https://github.com/paritytech/prdoc

Usage: prdoc [OPTIONS] [COMMAND]

Expand All @@ -11,6 +13,11 @@ Commands:
help Print this message or the help of the given subcommand(s)

Options:
-v, --version Show the version
-j, --json Output as json
-h, --help Print help
-v, --version
Show the version

-j, --json
Output as json

-h, --help
Print help (see a summary with '-h')

0 comments on commit 95d5021

Please sign in to comment.