Merge pull request #85 from wbh1/add/fileglobbing

Add support for fileglobs
This commit is contained in:
Egor Kovetskiy
2021-04-05 07:50:08 +03:00
committed by GitHub
2 changed files with 77 additions and 37 deletions

View File

@@ -306,7 +306,7 @@ mark -h | --help
If -l is not specified, file should contain metadata (see above).
- `-b <url>` or `--base-url <url>` Base URL for Confluence.
Alternative option for base_url config field.
- `-f <file>` — Use specified markdown file for converting to html.
- `-f <file>` — Use specified markdown file(s) for converting to html. Supports file globbing patterns (needs to be quoted).
- `-c <file>` — Specify configuration file which should be used for reading
Confluence page URL and markdown file path.
- `-k` — Lock page editing to current user only to prevent accidental
@@ -376,3 +376,10 @@ only:
branches:
- main
```
## File Globbing
Rather than running `mark` multiple times, or looping through a list of files from `find`, you can use file globbing (i.e. wildcard patterns) to match files in subdirectories. For example:
```bash
mark -f "helpful_cmds/*.md"
```