-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Autogenerate manpages and markdown docs
- Loading branch information
Showing
19 changed files
with
602 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Documentation of ortfo/db | ||
|
||
See <https://ortfo.org/db> for the complete documentation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
## ortfodb | ||
|
||
Manage your portfolio's database | ||
|
||
### Synopsis | ||
|
||
Manage your portfolio's database — See https://github.com/ortfo/db for more information. | ||
|
||
### Examples | ||
|
||
``` | ||
[1m[2m$[0m [1mortfodb[0m [36m--config[0m [32m.ortfodb.yaml[0m [34mbuild[0m [32mdatabase.json[0m | ||
[1m[2m$[0m [1mortfodb[0m [34madd[0m [32mmy-project[0m[0m | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-c, --config string config file path (default "ortfodb.yaml") | ||
-h, --help help for ortfodb | ||
--scattered Operate in scattered mode. In scattered mode, the description.md files are searched inside `.ortfo' folders in every folder of the database directory, instead of directly in the database directory's folders. See https://github.com/ortfo/ | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [ortfodb add](ortfodb_add.md) - Add a new project to your portfolio | ||
* [ortfodb build](ortfodb_build.md) - Build the database | ||
* [ortfodb exporters](ortfodb_exporters.md) - Commands related to ortfo/db exporters | ||
* [ortfodb replicate](ortfodb_replicate.md) - Replicate a database directory from a built database file. | ||
* [ortfodb schemas](ortfodb_schemas.md) - Output JSON schemas for ortfodb's various resources | ||
|
||
###### Auto generated by spf13/cobra on 15-Apr-2024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
## ortfodb add | ||
|
||
Add a new project to your portfolio | ||
|
||
### Synopsis | ||
|
||
Create a new project in the appropriate folder. ID is the work's slug. | ||
|
||
``` | ||
ortfodb add <id> [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for add | ||
--overwrite Overwrite the description.md file if it already exists | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
-c, --config string config file path (default "ortfodb.yaml") | ||
--scattered Operate in scattered mode. In scattered mode, the description.md files are searched inside `.ortfo' folders in every folder of the database directory, instead of directly in the database directory's folders. See https://github.com/ortfo/ | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [ortfodb](ortfodb.md) - Manage your portfolio's database | ||
|
||
###### Auto generated by spf13/cobra on 15-Apr-2024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
## ortfodb build | ||
|
||
Build the database | ||
|
||
### Synopsis | ||
|
||
Scan in the projects directory for folders with description.md files (and potential media files) and compile the whole database into a JSON file at <to-filepath>. | ||
|
||
If <to-filepath> is "-", the output will be written to stdout. | ||
|
||
If [include-works] is provided, only works that match the pattern will be included in the database. | ||
|
||
|
||
``` | ||
ortfodb build <to-filepath> [include-works] [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-e, --exporters stringArray Exporters to enable. If not provided, all the exporters configured in the configuration file will be enabled. | ||
-h, --help help for build | ||
-m, --minified Output a minifed JSON file | ||
--no-cache Disable usage of previous database build as cache for this build (used for media analysis among other things). | ||
-q, --silent Do not write to stdout | ||
--workers int Use <count> workers to build the database. Defaults to the number of CPU cores. (default 12) | ||
--write-progress string Write progress information to a file. See https://pkg.go.dev/github.com/ortfo/db#ProgressInfoEvent for more information. | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
-c, --config string config file path (default "ortfodb.yaml") | ||
--scattered Operate in scattered mode. In scattered mode, the description.md files are searched inside `.ortfo' folders in every folder of the database directory, instead of directly in the database directory's folders. See https://github.com/ortfo/ | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [ortfodb](ortfodb.md) - Manage your portfolio's database | ||
|
||
###### Auto generated by spf13/cobra on 15-Apr-2024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
## ortfodb exporters | ||
|
||
Commands related to ortfo/db exporters | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for exporters | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
-c, --config string config file path (default "ortfodb.yaml") | ||
--scattered Operate in scattered mode. In scattered mode, the description.md files are searched inside `.ortfo' folders in every folder of the database directory, instead of directly in the database directory's folders. See https://github.com/ortfo/ | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [ortfodb](ortfodb.md) - Manage your portfolio's database | ||
* [ortfodb exporters init](ortfodb_exporters_init.md) - Create a new exporter | ||
|
||
###### Auto generated by spf13/cobra on 15-Apr-2024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
## ortfodb exporters init | ||
|
||
Create a new exporter | ||
|
||
``` | ||
ortfodb exporters init <name> [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for init | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
-c, --config string config file path (default "ortfodb.yaml") | ||
--scattered Operate in scattered mode. In scattered mode, the description.md files are searched inside `.ortfo' folders in every folder of the database directory, instead of directly in the database directory's folders. See https://github.com/ortfo/ | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [ortfodb exporters](ortfodb_exporters.md) - Commands related to ortfo/db exporters | ||
|
||
###### Auto generated by spf13/cobra on 15-Apr-2024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
## ortfodb replicate | ||
|
||
Replicate a database directory from a built database file. | ||
|
||
### Synopsis | ||
|
||
Replicate a database from <from-filepath> to <to-filepath>. Note that <to-filepath> must be an empty directory. | ||
|
||
Example: ortfodb replicate ./database.json ./replicated-database/ | ||
|
||
WARNING: This command is still kind-of a WIP, it works but there's minimal logging and error handling. | ||
|
||
|
||
``` | ||
ortfodb replicate <from-filepath> <to-filepath> [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for replicate | ||
-n, --no-verify Don't try to validate the built database file before replicating | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
-c, --config string config file path (default "ortfodb.yaml") | ||
--scattered Operate in scattered mode. In scattered mode, the description.md files are searched inside `.ortfo' folders in every folder of the database directory, instead of directly in the database directory's folders. See https://github.com/ortfo/ | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [ortfodb](ortfodb.md) - Manage your portfolio's database | ||
|
||
###### Auto generated by spf13/cobra on 15-Apr-2024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
## ortfodb schemas | ||
|
||
Output JSON schemas for ortfodb's various resources | ||
|
||
### Synopsis | ||
|
||
Don't pass any resource to get the list of available resources | ||
|
||
Output the JSON schema for: | ||
- configuration: the configuration file (.ortfodb.yaml) | ||
- database: the output database file | ||
- tags: the tags repository file (tags.yaml) | ||
- technologies: the technologies repository file (technologies.yaml) | ||
- exporter: the manifest file for an exporter | ||
|
||
|
||
``` | ||
ortfodb schemas [resource] [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for schemas | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
-c, --config string config file path (default "ortfodb.yaml") | ||
--scattered Operate in scattered mode. In scattered mode, the description.md files are searched inside `.ortfo' folders in every folder of the database directory, instead of directly in the database directory's folders. See https://github.com/ortfo/ | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [ortfodb](ortfodb.md) - Manage your portfolio's database | ||
|
||
###### Auto generated by spf13/cobra on 15-Apr-2024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
.nh | ||
.TH "ORTFODB" "1" "Apr 2024" "https://ortfo.org/db" "ortfo/db Manual" | ||
|
||
.SH NAME | ||
.PP | ||
ortfodb-add - Add a new project to your portfolio | ||
|
||
|
||
.SH SYNOPSIS | ||
.PP | ||
\fBortfodb add [flags]\fP | ||
|
||
|
||
.SH DESCRIPTION | ||
.PP | ||
Create a new project in the appropriate folder. ID is the work's slug. | ||
|
||
|
||
.SH OPTIONS | ||
.PP | ||
\fB-h\fP, \fB--help\fP[=false] | ||
help for add | ||
|
||
.PP | ||
\fB--overwrite\fP[=false] | ||
Overwrite the description.md file if it already exists | ||
|
||
|
||
.SH OPTIONS INHERITED FROM PARENT COMMANDS | ||
.PP | ||
\fB-c\fP, \fB--config\fP="ortfodb.yaml" | ||
config file path | ||
|
||
.PP | ||
\fB--scattered\fP[=false] | ||
Operate in scattered mode. In scattered mode, the description.md files are searched inside `.ortfo' folders in every folder of the database directory, instead of directly in the database directory's folders. See https://github.com/ortfo/ | ||
|
||
|
||
.SH SEE ALSO | ||
.PP | ||
\fBortfodb(1)\fP | ||
|
||
|
||
.SH HISTORY | ||
.PP | ||
15-Apr-2024 Auto generated by spf13/cobra |
Oops, something went wrong.