graphile 5.0.0-rc.2 → 5.0.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +59 -0
- package/LICENSE.md +11 -71
- package/README.md +82 -43
- package/dist/commands/config/cli.js +1 -1
- package/dist/commands/config/cli.js.map +1 -1
- package/dist/commands/config/options/cli.d.ts +4 -0
- package/dist/commands/config/options/cli.d.ts.map +1 -1
- package/dist/commands/config/options/cli.js +12 -2
- package/dist/commands/config/options/cli.js.map +1 -1
- package/dist/commands/config/options/main.d.ts +1 -0
- package/dist/commands/config/options/main.d.ts.map +1 -1
- package/dist/commands/config/options/main.js +176 -46
- package/dist/commands/config/options/main.js.map +1 -1
- package/dist/commands/inflection/list/cli.d.ts +3 -1
- package/dist/commands/inflection/list/cli.d.ts.map +1 -1
- package/dist/commands/inflection/list/cli.js +7 -2
- package/dist/commands/inflection/list/cli.js.map +1 -1
- package/dist/commands/inflection/list/main.d.ts +27 -1
- package/dist/commands/inflection/list/main.d.ts.map +1 -1
- package/dist/commands/inflection/list/main.js +135 -17
- package/dist/commands/inflection/list/main.js.map +1 -1
- package/dist/utils/typescriptVfs.d.ts +37 -1
- package/dist/utils/typescriptVfs.d.ts.map +1 -1
- package/dist/utils/typescriptVfs.js +87 -60
- package/dist/utils/typescriptVfs.js.map +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,64 @@
|
|
|
1
1
|
# graphile
|
|
2
2
|
|
|
3
|
+
## 5.0.0-rc.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2852](https://github.com/graphile/crystal/pull/2852)
|
|
8
|
+
[`65c9eb4`](https://github.com/graphile/crystal/commit/65c9eb4630013bcdb8364f8fb0dcbdec31f602f3)
|
|
9
|
+
Thanks [@benjie](https://github.com/benjie)! - Add
|
|
10
|
+
`graphile config options [scope]` command to limit options to a specific
|
|
11
|
+
scope.
|
|
12
|
+
|
|
13
|
+
- [#2873](https://github.com/graphile/crystal/pull/2873)
|
|
14
|
+
[`0772086`](https://github.com/graphile/crystal/commit/0772086411a55d56b4e345cff1eef133eee31b36)
|
|
15
|
+
Thanks [@benjie](https://github.com/benjie)! - Update TypeScript configuration
|
|
16
|
+
to support Node 22 minimum
|
|
17
|
+
|
|
18
|
+
- [#2862](https://github.com/graphile/crystal/pull/2862)
|
|
19
|
+
[`8503db6`](https://github.com/graphile/crystal/commit/8503db64831037c72249a3cc525b20ff91304a89)
|
|
20
|
+
Thanks [@benjie](https://github.com/benjie)! - Change `graphile` CLI to be
|
|
21
|
+
FLOSS under MIT license (previously sponsors only... but sponsorship still
|
|
22
|
+
encouraged!)
|
|
23
|
+
|
|
24
|
+
- [#2888](https://github.com/graphile/crystal/pull/2888)
|
|
25
|
+
[`1a56db2`](https://github.com/graphile/crystal/commit/1a56db2f53bc455a3d3ba6555a2cd777b27b271c)
|
|
26
|
+
Thanks [@benjaie](https://github.com/benjaie)! - Node v22+ is required for
|
|
27
|
+
this module.
|
|
28
|
+
|
|
29
|
+
- [#2855](https://github.com/graphile/crystal/pull/2855)
|
|
30
|
+
[`1682bed`](https://github.com/graphile/crystal/commit/1682bedd8d47e266ba9751bfaf77f09960b85c60)
|
|
31
|
+
Thanks [@benjie](https://github.com/benjie)! - Ability to detect TSDoc tags
|
|
32
|
+
and output appropriately
|
|
33
|
+
|
|
34
|
+
- [#2859](https://github.com/graphile/crystal/pull/2859)
|
|
35
|
+
[`53e0af2`](https://github.com/graphile/crystal/commit/53e0af2bda2aad9abe430e00b52a37ea5f3e81c3)
|
|
36
|
+
Thanks [@benjie](https://github.com/benjie)! - Inflection debugging now
|
|
37
|
+
outputs much more detail about inflectors, including which plugins
|
|
38
|
+
added/overrode the inflector.
|
|
39
|
+
|
|
40
|
+
- [#2859](https://github.com/graphile/crystal/pull/2859)
|
|
41
|
+
[`65d9556`](https://github.com/graphile/crystal/commit/65d9556cf18c54a7cd9c291aa10aa9806adb3c7a)
|
|
42
|
+
Thanks [@benjie](https://github.com/benjie)! - Add tracing to inflectors
|
|
43
|
+
|
|
44
|
+
- Updated dependencies
|
|
45
|
+
[[`c2ae685`](https://github.com/graphile/crystal/commit/c2ae685a5ce001f79356c4a994613b16cdb01475),
|
|
46
|
+
[`1e45a3d`](https://github.com/graphile/crystal/commit/1e45a3d6495cfea45bfdde95af889a453b82def3),
|
|
47
|
+
[`0772086`](https://github.com/graphile/crystal/commit/0772086411a55d56b4e345cff1eef133eee31b36),
|
|
48
|
+
[`a60ed2a`](https://github.com/graphile/crystal/commit/a60ed2acc7abbdfce727eaef48f6ca0349c24635),
|
|
49
|
+
[`1606298`](https://github.com/graphile/crystal/commit/1606298cdac2938e02675d0e7e5e134364ac7bcf),
|
|
50
|
+
[`a565503`](https://github.com/graphile/crystal/commit/a5655035dfee7000c1d37e4791354d7a2ba35792),
|
|
51
|
+
[`d9ccc82`](https://github.com/graphile/crystal/commit/d9ccc82a30ca6167f480e5c8bc15d17df51c0d1c),
|
|
52
|
+
[`1a56db2`](https://github.com/graphile/crystal/commit/1a56db2f53bc455a3d3ba6555a2cd777b27b271c),
|
|
53
|
+
[`2e770df`](https://github.com/graphile/crystal/commit/2e770df354db58d39aead55c3aeca8ee2fb41833),
|
|
54
|
+
[`456d387`](https://github.com/graphile/crystal/commit/456d387887bb6fb9a880d2c3cd8cc6ece8391cf0),
|
|
55
|
+
[`4ca27c1`](https://github.com/graphile/crystal/commit/4ca27c1f543359d5a7dc53fae35fc35caddb4076),
|
|
56
|
+
[`a258427`](https://github.com/graphile/crystal/commit/a2584278e78535dc3c611c5257c332e515c280bc),
|
|
57
|
+
[`65d9556`](https://github.com/graphile/crystal/commit/65d9556cf18c54a7cd9c291aa10aa9806adb3c7a)]:
|
|
58
|
+
- postgraphile@5.0.0-rc.4
|
|
59
|
+
- graphile-build@5.0.0-rc.3
|
|
60
|
+
- graphile-config@1.0.0-rc.3
|
|
61
|
+
|
|
3
62
|
## 5.0.0-rc.2
|
|
4
63
|
|
|
5
64
|
### Patch Changes
|
package/LICENSE.md
CHANGED
|
@@ -1,80 +1,20 @@
|
|
|
1
|
-
#
|
|
1
|
+
# The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright
|
|
3
|
+
Copyright © `2025` Benjie Gillam
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the “Software”), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
subject to the following conditions:
|
|
6
11
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
- "Sponsor": an individual, company, or other legal entity that is sponsoring
|
|
10
|
-
Graphile Ltd via [GitHub Sponsors](https://github.com/sponsors/benjie),
|
|
11
|
-
[Patreon](https://patreon.com/benjie), or any method agreed with Graphile Ltd.
|
|
12
|
-
- "Sponsorship": the period for which either or both You and Your Organization
|
|
13
|
-
are a Sponsor. If You or Your Organization makes a payment which does not
|
|
14
|
-
recur automatically, the Sponsorship is deemed to be the period of 30 days
|
|
15
|
-
from the date of that payment.
|
|
16
|
-
- "You": the individual using the Software.
|
|
17
|
-
- "Your Organization": the company or other legal entity on behalf of which You
|
|
18
|
-
are using the Software (if applicable).
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
19
14
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
If You are not a Sponsor and Your Organization is not a Sponsor, the first time
|
|
23
|
-
You use the Software, Graphile Ltd grants You a revokable, non-exclusive,
|
|
24
|
-
non-transferable, non-sublicensable, license to run the Software for 30 calendar
|
|
25
|
-
days. Graphile Ltd may revoke this license at any time, for any (or no) reason,
|
|
26
|
-
with no requirement to give you advance notice.
|
|
27
|
-
|
|
28
|
-
You can use the Software on as many machines as You want, for Your own use.
|
|
29
|
-
|
|
30
|
-
Your license terminates automatically at the end of those 30 calendar days.
|
|
31
|
-
|
|
32
|
-
If you have previously used the Software, You do not get another free trial
|
|
33
|
-
period or an extended free trial period by downloading it again, or using it on
|
|
34
|
-
a different machine. You get one free trial, ever.
|
|
35
|
-
|
|
36
|
-
To use the Software after the termination of the free trial, Your or Your
|
|
37
|
-
Organization must be a Sponsor.
|
|
38
|
-
|
|
39
|
-
## If You or Your Organization is a Sponsor
|
|
40
|
-
|
|
41
|
-
If either or both You or Your Organization is a Sponsor, Graphile Ltd grants You
|
|
42
|
-
a revokable, non-exclusive, non-transferable, non-sublicensable, license to run
|
|
43
|
-
the Software for the duration of the Sponsorship. Graphile Ltd may revoke this
|
|
44
|
-
license at any time, for any (or no) reason, with no requirement to give you
|
|
45
|
-
advance notice.
|
|
46
|
-
|
|
47
|
-
You can use the Software on as many machines as You want, for Your own use.
|
|
48
|
-
|
|
49
|
-
Your license terminates automatically at the end of the Sponsorship.
|
|
50
|
-
|
|
51
|
-
Unless Graphile Ltd informs you in writing (including email, response to an
|
|
52
|
-
online support ticket, and other similar electronic mechanisms) that it is not
|
|
53
|
-
willing to grant you a new license, to obtain a new license, You, or Your
|
|
54
|
-
Organization, must become a Sponsor again.
|
|
55
|
-
|
|
56
|
-
## Indemnity and no warranty
|
|
57
|
-
|
|
58
|
-
You indemnify and hold Graphile Ltd and its directors, employees, parents,
|
|
59
|
-
subsidiaries and partners (if any) harmless from any and all claims, charges,
|
|
60
|
-
costs, damages, demands, fines, judgements, liabilities, losses, or penalties of
|
|
61
|
-
any nature, arising out of or in connection with:
|
|
62
|
-
|
|
63
|
-
- Your use of the Software;
|
|
64
|
-
- Your non-compliance with the terms of the licence, or use of the Software
|
|
65
|
-
without a licence;
|
|
66
|
-
- Your violation of any rights of a third party; and
|
|
67
|
-
- Your violation of any law or regulation.
|
|
68
|
-
|
|
69
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
70
16
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
71
17
|
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
72
18
|
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
73
19
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
74
20
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
75
|
-
|
|
76
|
-
## Law and jurisdiction
|
|
77
|
-
|
|
78
|
-
This agreement is governed by English law. The courts of England and Wales have
|
|
79
|
-
exclusive jurisdiction in respect of any claims arising out of or in connection
|
|
80
|
-
with it, including non-contractual claims.
|
package/README.md
CHANGED
|
@@ -10,51 +10,90 @@ projects, helping you to create, debug, update, interact with and maintain them.
|
|
|
10
10
|
|
|
11
11
|
At the moment, it doesn't contain much, but it should grow over time.
|
|
12
12
|
|
|
13
|
-
##
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
source software**. Instead it is licensed software, only to be used by sponsors.
|
|
19
|
-
|
|
20
|
-
At Graphile, we can only work on open source as much as we do thanks to the
|
|
21
|
-
support of our sponsors. Sadly, many corporations decline to fund the open
|
|
22
|
-
source software that underpins the success of their businesses. This lack of
|
|
23
|
-
funding can lead to maintainer burnout and ultimately the discontinuation of
|
|
24
|
-
projects, leaving these short-sighted companies to spend large amounts on
|
|
25
|
-
maintenance, security, and/or rewrites.
|
|
26
|
-
|
|
27
|
-
<figure>
|
|
28
|
-
<img
|
|
29
|
-
src="https://imgs.xkcd.com/comics/dependency.png"
|
|
30
|
-
alt="An XKCD cartoon showing how all modern digital infrastructure relies on a project some random person in Nebraska has been thanklessly maintaining since 2003."
|
|
31
|
-
/>
|
|
32
|
-
<figcaption>
|
|
33
|
-
<p><em>Mandatory XKCD #2347 - Dependency.</em></p>
|
|
34
|
-
</figcaption>
|
|
35
|
-
</figure>
|
|
36
|
-
|
|
37
|
-
Fortunately smart engineers tend to recognize that OSS projects need financial
|
|
38
|
-
support to both be sustainable and to keep advancing. This sponsors-only package
|
|
39
|
-
serves two purposes. First and foremost, it is a thank you to our sponsors who
|
|
40
|
-
have helped us to get this far. Secondly, it acts as a carrot that
|
|
41
|
-
forward-thinking engineers can use to convince their corporations sponsorship is
|
|
42
|
-
necessary.
|
|
43
|
-
|
|
44
|
-
_We hope that once a company is sponsoring one project, sponsoring others should
|
|
45
|
-
be much easier; as such, this project is **only licensed for sponsors** - we do
|
|
46
|
-
not sell licenses to it separately._
|
|
47
|
-
|
|
48
|
-
We offer non-sponsors a 30 day trial of this software, after that you must
|
|
49
|
-
become a sponsor to keep using it. We recommend a sponsorship of at least $25/mo
|
|
50
|
-
per engineer, however you may sponsor us at any amount that the platforms allow.
|
|
51
|
-
One-time sponsorships are equivalent to 30 calendar days of sponsorship.
|
|
52
|
-
|
|
53
|
-
## `graphile config print`
|
|
13
|
+
## `graphile config`
|
|
14
|
+
|
|
15
|
+
Config debugging commands
|
|
16
|
+
|
|
17
|
+
### `graphile config print`
|
|
54
18
|
|
|
55
19
|
Prints out the configuration from your `graphile.config.mjs` (or similar) file
|
|
56
20
|
in an easy to read/digest form.
|
|
57
21
|
|
|
58
|
-
|
|
22
|
+
### `graphile config options`
|
|
23
|
+
|
|
24
|
+
Outputs markdown detailing the full list of options that you may specify in your
|
|
25
|
+
config file, suitable for inclusion in your repository's documentation folder.
|
|
26
|
+
Output is honed specifically to your set of plugins and presets.
|
|
27
|
+
|
|
28
|
+
## `graphile inflection`
|
|
29
|
+
|
|
30
|
+
Inflection debugging commands
|
|
31
|
+
|
|
32
|
+
### `graphile inflection list`
|
|
33
|
+
|
|
34
|
+
Outputs markdown detailing the full list of inflectors that have been defined
|
|
35
|
+
(and may be overridden via a plugin), suitable for inclusion in your
|
|
36
|
+
repository's documentation folder. Output is honed specifically to your set of
|
|
37
|
+
plugins and presets.
|
|
38
|
+
|
|
39
|
+
## `graphile behavior`
|
|
40
|
+
|
|
41
|
+
Behavior debugging commands. (WARNING: This hasn't been updated since behavior
|
|
42
|
+
defaults were reworked, so is now super verbose and a little confusing.)
|
|
43
|
+
|
|
44
|
+
### `graphile behavior debug`
|
|
45
|
+
|
|
46
|
+
Lists the `entityType`s available to debug (will vary depending on your
|
|
47
|
+
plugins); example:
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
$ graphile behavior debug
|
|
51
|
+
No entity type was specified; please pick one of the supported entity types:
|
|
52
|
+
- pgCodec
|
|
53
|
+
- pgCodecAttribute
|
|
54
|
+
- pgCodecRef
|
|
55
|
+
- pgCodecRelation
|
|
56
|
+
- pgRefDefinition
|
|
57
|
+
- pgResource
|
|
58
|
+
- pgResourceUnique
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
(See
|
|
62
|
+
[@dataplan/pg registry](https://grafast.org/grafast/step-library/dataplan-pg/registry/)
|
|
63
|
+
for details of the example above.)
|
|
64
|
+
|
|
65
|
+
### `graphile behavior debug <entityType>`
|
|
66
|
+
|
|
67
|
+
Lists the entity identifiers for that specific entity type; e.g.
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
$ graphile behavior debug pgResource
|
|
71
|
+
No entity identifier was specified; please pick one of the supported entities for entity type 'pgResource':
|
|
72
|
+
- fn
|
|
73
|
+
- person
|
|
74
|
+
- post
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### `graphile behavior debug <entityType> <entityIdentifier>`
|
|
78
|
+
|
|
79
|
+
Outputs the behavior string for the given entity, along with sources that caused
|
|
80
|
+
it to be derived in that way - indicating which behaviors came from which
|
|
81
|
+
plugins.
|
|
82
|
+
|
|
83
|
+
The output for each plugin includes styled text:
|
|
84
|
+
|
|
85
|
+
- green text is behavior strings added by this plugin - this may be either at
|
|
86
|
+
the start or end of the string
|
|
87
|
+
- grey text is inherited from previous behavior string
|
|
88
|
+
- strike through text (green or grey) indicates a behavior fragment that has
|
|
89
|
+
been overridden by a later value in the string
|
|
90
|
+
|
|
91
|
+
The `__ApplyBehaviors_*__`-style entry is a workaround that shows the
|
|
92
|
+
"multiplication" of the previous behavior with the default behavior. It's a
|
|
93
|
+
hack/workaround until we have a better way of presenting this concept.
|
|
94
|
+
|
|
95
|
+
### `graphile behavior debug <entityType> <entityIdentifier> <filterString>`
|
|
59
96
|
|
|
60
|
-
|
|
97
|
+
As above, but pass a filter string (a behavior fragment) and any behaviors
|
|
98
|
+
related to that will be highlit so you can see what came to manipulate that
|
|
99
|
+
particular setting.
|
|
@@ -7,7 +7,7 @@ const optionsCmd = tslib_1.__importStar(require("./options/cli.js"));
|
|
|
7
7
|
const printCmd = tslib_1.__importStar(require("./print/cli.js"));
|
|
8
8
|
function options(yargs) {
|
|
9
9
|
return yargs
|
|
10
|
-
.command(
|
|
10
|
+
.command(optionsCmd.command, optionsCmd.description, optionsCmd.options, optionsCmd.run)
|
|
11
11
|
.command("print", "Prints your resolved configuration", printCmd.options, printCmd.run)
|
|
12
12
|
.demandCommand();
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/commands/config/cli.ts"],"names":[],"mappings":";;AAKA,0BAeC;AAED,kBAGC;;AAvBD,qEAA+C;AAC/C,iEAA2C;AAE3C,SAAgB,OAAO,CAAC,KAAW;IACjC,OAAO,KAAK;SACT,OAAO,CACN,
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/commands/config/cli.ts"],"names":[],"mappings":";;AAKA,0BAeC;AAED,kBAGC;;AAvBD,qEAA+C;AAC/C,iEAA2C;AAE3C,SAAgB,OAAO,CAAC,KAAW;IACjC,OAAO,KAAK;SACT,OAAO,CACN,UAAU,CAAC,OAAO,EAClB,UAAU,CAAC,WAAW,EACtB,UAAU,CAAC,OAAO,EAClB,UAAU,CAAC,GAAG,CACf;SACA,OAAO,CACN,OAAO,EACP,oCAAoC,EACpC,QAAQ,CAAC,OAAO,EAChB,QAAQ,CAAC,GAAG,CACb;SACA,aAAa,EAAE,CAAC;AACrB,CAAC;AAED,SAAgB,GAAG,CAAC,KAAsC;IACxD,oDAAoD;IACpD,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;AACzC,CAAC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { ArgsFromOptions, Argv } from "graphile-config/cli";
|
|
2
|
+
export declare const command = "options [scope]";
|
|
3
|
+
export declare const description = "Output the options your config may contain";
|
|
2
4
|
export declare function options(yargs: Argv): Argv<{
|
|
3
5
|
config: string | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
scope: string | undefined;
|
|
4
8
|
}>;
|
|
5
9
|
export declare function run(args: ArgsFromOptions<typeof options>): void;
|
|
6
10
|
//# sourceMappingURL=cli.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../../src/commands/config/options/cli.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAIjE,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../../src/commands/config/options/cli.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAIjE,eAAO,MAAM,OAAO,oBAAoB,CAAC;AAEzC,eAAO,MAAM,WAAW,+CAA+C,CAAC;AAExE,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI;;;;GAsBlC;AACD,wBAAgB,GAAG,CAAC,IAAI,EAAE,eAAe,CAAC,OAAO,OAAO,CAAC,QAGxD"}
|
|
@@ -1,20 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.description = exports.command = void 0;
|
|
3
4
|
exports.options = options;
|
|
4
5
|
exports.run = run;
|
|
5
6
|
const main_js_1 = require("./main.js");
|
|
7
|
+
exports.command = "options [scope]";
|
|
8
|
+
exports.description = "Output the options your config may contain";
|
|
6
9
|
function options(yargs) {
|
|
7
10
|
return yargs
|
|
8
|
-
.example("$0
|
|
11
|
+
.example("$0", "Read graphile.config.ts and determine the configuration options available")
|
|
12
|
+
.example("$0 grafserv", "As above, but only output configuration for the grafserv scope")
|
|
13
|
+
.example("$0 -C myconf.ts", "Use a custom configuration path")
|
|
9
14
|
.option("config", {
|
|
10
15
|
alias: "C",
|
|
11
16
|
type: "string",
|
|
12
17
|
description: "The path to the config file",
|
|
13
18
|
normalize: true,
|
|
19
|
+
})
|
|
20
|
+
.positional("scope", {
|
|
21
|
+
description: "Only include the specified scope",
|
|
22
|
+
demandOption: false,
|
|
23
|
+
type: "string",
|
|
14
24
|
});
|
|
15
25
|
}
|
|
16
26
|
function run(args) {
|
|
17
|
-
const text = (0, main_js_1.main)({ filename: args.config });
|
|
27
|
+
const text = (0, main_js_1.main)({ filename: args.config, scope: args.scope });
|
|
18
28
|
console.log(text);
|
|
19
29
|
}
|
|
20
30
|
//# sourceMappingURL=cli.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/commands/config/options/cli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/commands/config/options/cli.ts"],"names":[],"mappings":";;;AAQA,0BAsBC;AACD,kBAGC;AAhCD,uCAAiC;AAEpB,QAAA,OAAO,GAAG,iBAAiB,CAAC;AAE5B,QAAA,WAAW,GAAG,4CAA4C,CAAC;AAExE,SAAgB,OAAO,CAAC,KAAW;IACjC,OAAO,KAAK;SACT,OAAO,CACN,IAAI,EACJ,2EAA2E,CAC5E;SACA,OAAO,CACN,aAAa,EACb,gEAAgE,CACjE;SACA,OAAO,CAAC,iBAAiB,EAAE,iCAAiC,CAAC;SAC7D,MAAM,CAAC,QAAQ,EAAE;QAChB,KAAK,EAAE,GAAG;QACV,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,6BAA6B;QAC1C,SAAS,EAAE,IAAI;KAChB,CAAC;SACD,UAAU,CAAC,OAAO,EAAE;QACnB,WAAW,EAAE,kCAAkC;QAC/C,YAAY,EAAE,KAAK;QACnB,IAAI,EAAE,QAAQ;KACf,CAAC,CAAC;AACP,CAAC;AACD,SAAgB,GAAG,CAAC,IAAqC;IACvD,MAAM,IAAI,GAAG,IAAA,cAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;IAChE,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AACpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../src/commands/config/options/main.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../src/commands/config/options/main.ts"],"names":[],"mappings":"AAiBA,wBAAgB,IAAI,CAAC,OAAO,EAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,UA4VlE"}
|