dev gitignore gen
Write this repository's .gitignore from the shared set and its own additions
- Command version
0.0.0- Command configuration
dev-tool:dev.gitignore.gen@0.0.0
Arguments
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
--check, --no-check | boolean | No | false | Report whether the ignore file is what the declaration would write, and write nothing |
It also takes the global arguments.
Output
It answers with a gen.gitignoreGenSummary.
Types
gen.gitignoreGenSummary
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
repositories | list[string] | Yes | Each repository whose ignore file is generated, as a path from the root the command ran in: . for that root, then each repository it pins that keeps a .dev-tool/config.yml | |
sharedCount | integer | Yes | How many ignore rules dev-tool states for every repository | |
ownCount | integer | Yes | How many rules the repositories state for themselves in gitignoreAdditions, summed over repositories | |
check | boolean | Yes | Whether the run was made with --check, which compares and writes nothing | |
written | list[string] | Yes | The repositories whose ignore file the run rewrote, as repositories names them. Empty under --check | |
outOfDate | list[string] | Yes | The repositories whose ignore file is not what would be generated, as repositories names them. Filled under --check alone, which fails as GITIGNORE_OUT_OF_DATE where it names any |