@jujulego/jill 2.4.0-alpha.3 → 2.4.0-alpha.5

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/README.md CHANGED
@@ -29,14 +29,14 @@ This feature can be disabled using the `--no-hooks` option: `jill run --no-hooks
29
29
 
30
30
  #### Task syntax _(only supported by `jill group` command yet)_
31
31
  Allows to instruct multiple tasks with the given orchestration. The orchestration is given by the following operators:
32
- - `->` in sequence
32
+ - `&&` in sequence
33
33
  - `||` fallbacks
34
34
  - `//` in parallel
35
35
 
36
36
  ##### Examples:
37
37
  - This will run scripts **taskA**, **taskB** and **taskC** in order, one after another.
38
38
  ```shell
39
- jill group 'taskA -> taskB -> taskC'
39
+ jill group 'taskA && taskB && taskC'
40
40
  ```
41
41
 
42
42
  - This will run first **taskA**, if it fails it will run **taskB**, then **taskC** in order, until one succeed.
@@ -51,7 +51,7 @@ Allows to instruct multiple tasks with the given orchestration. The orchestratio
51
51
 
52
52
  - And you can create more complex flows: this will run **taskA** and **taskB** in parallel, and then **taskC** when both tasks are ended
53
53
  ```shell
54
- jill group '(taskA // taskB) -> taskC'
54
+ jill group '(taskA // taskB) && taskC'
55
55
  ```
56
56
 
57
57
  ## Installation
package/bin/jill.js ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+
3
+ import '../dist/main.js';
@@ -7,6 +7,7 @@ export interface IEachCommandArgs {
7
7
  script: string;
8
8
  'build-script': string;
9
9
  'deps-mode': WorkspaceDepsMode;
10
+ 'allow-no-workspaces'?: boolean;
10
11
  private?: boolean;
11
12
  affected: string;
12
13
  'affected-rev-fallback': string;
@@ -1,21 +1,30 @@
1
+ import { Logger } from '@jujulego/logger';
1
2
  import { type ArgumentsCamelCase, type Argv } from 'yargs';
2
3
  import { InkCommand } from '@/src/modules/ink-command.tsx';
3
4
  import { type Project } from '@/src/project/project.ts';
4
5
  export type Attribute = 'name' | 'version' | 'root' | 'slug';
5
6
  export type Data = Partial<Record<Attribute, string>>;
6
- export interface IListCommandArgs {
7
+ export type Order = 'asc' | 'desc';
8
+ export interface ListCommandArgs {
7
9
  private?: boolean;
8
10
  'with-script'?: string[];
9
11
  affected: string;
10
12
  'affected-rev-fallback': string;
11
13
  'affected-rev-sort'?: string;
12
- attrs: Attribute[];
14
+ attrs?: Attribute[];
13
15
  headers?: boolean;
14
16
  long?: boolean;
15
17
  json?: boolean;
18
+ 'sort-by'?: Attribute[];
19
+ order: Order;
16
20
  }
17
- export declare class ListCommand extends InkCommand<IListCommandArgs> {
21
+ export declare class ListCommand extends InkCommand<ListCommandArgs> {
22
+ private readonly logger;
18
23
  readonly project: Project;
19
- builder(parser: Argv): Argv<IListCommandArgs>;
20
- render(args: ArgumentsCamelCase<IListCommandArgs>): AsyncGenerator<import("react/jsx-runtime").JSX.Element, void, unknown>;
24
+ constructor(logger: Logger);
25
+ builder(parser: Argv): Argv<ListCommandArgs>;
26
+ render(args: ArgumentsCamelCase<ListCommandArgs>): AsyncGenerator<import("react/jsx-runtime").JSX.Element, void, unknown>;
27
+ private _applyDefaults;
28
+ private _preparePipeline;
29
+ private _dataComparator;
21
30
  }