@qodalis/cli-todo 0.0.6 → 2.0.0-beta.10
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/package.json +16 -24
- package/public-api.d.mts +49 -0
- package/public-api.d.ts +49 -2
- package/public-api.js +552 -0
- package/public-api.js.map +1 -0
- package/public-api.mjs +543 -0
- package/public-api.mjs.map +1 -0
- package/umd/index.global.js +3366 -0
- package/README.md +0 -34
- package/esm2022/lib/cli-todo.module.mjs +0 -19
- package/esm2022/lib/processors/cli-todo-command-processor.mjs +0 -181
- package/esm2022/lib/version.mjs +0 -3
- package/esm2022/public-api.mjs +0 -6
- package/esm2022/qodalis-cli-todo.mjs +0 -5
- package/fesm2022/qodalis-cli-todo.mjs +0 -210
- package/fesm2022/qodalis-cli-todo.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/cli-todo.module.d.ts +0 -6
- package/lib/processors/cli-todo-command-processor.d.ts +0 -23
- package/lib/version.d.ts +0 -1
- package/umd/index.js +0 -220
package/package.json
CHANGED
|
@@ -1,44 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qodalis/cli-todo",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2.0.0-beta.10",
|
|
4
|
+
"description": "@qodalis/cli extension for managing TODO tasks with add, list, complete, and remove commands.",
|
|
5
5
|
"author": "Nicolae Lupei, Qodalis Solutions",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "https://github.com/qodalis-solutions/
|
|
9
|
+
"url": "https://github.com/qodalis-solutions/web-cli"
|
|
10
10
|
},
|
|
11
11
|
"homepage": "https://qodalis.com",
|
|
12
12
|
"keywords": [
|
|
13
|
-
"angular",
|
|
14
13
|
"cli",
|
|
15
14
|
"qodalis",
|
|
16
15
|
"terminal",
|
|
17
|
-
"todo"
|
|
16
|
+
"todo",
|
|
17
|
+
"tasks",
|
|
18
|
+
"task-management"
|
|
18
19
|
],
|
|
19
|
-
"umd": "./umd/index.js",
|
|
20
|
-
"unpkg": "./umd/index.js",
|
|
21
|
-
"peerDependencies": {
|
|
22
|
-
"@angular/common": "^16.2.0",
|
|
23
|
-
"@angular/core": "^16.2.0"
|
|
24
|
-
},
|
|
20
|
+
"umd": "./umd/index.global.js",
|
|
21
|
+
"unpkg": "./umd/index.global.js",
|
|
25
22
|
"dependencies": {
|
|
26
|
-
"
|
|
27
|
-
"@qodalis/cli-core": "^0.0.16",
|
|
28
|
-
"@qodalis/angular-cli": "^1.0.37"
|
|
23
|
+
"@qodalis/cli-core": "2.0.0-beta.10"
|
|
29
24
|
},
|
|
30
25
|
"sideEffects": false,
|
|
31
|
-
"
|
|
32
|
-
"
|
|
26
|
+
"main": "./public-api.js",
|
|
27
|
+
"module": "./public-api.mjs",
|
|
28
|
+
"types": "./public-api.d.ts",
|
|
33
29
|
"exports": {
|
|
34
|
-
"./package.json": {
|
|
35
|
-
"default": "./package.json"
|
|
36
|
-
},
|
|
37
30
|
".": {
|
|
38
|
-
"types": "./
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"default": "./fesm2022/qodalis-cli-todo.mjs"
|
|
31
|
+
"types": "./public-api.d.ts",
|
|
32
|
+
"import": "./public-api.mjs",
|
|
33
|
+
"require": "./public-api.js"
|
|
42
34
|
}
|
|
43
35
|
}
|
|
44
|
-
}
|
|
36
|
+
}
|
package/public-api.d.mts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as _qodalis_cli_core from '@qodalis/cli-core';
|
|
2
|
+
import { ICliCommandProcessor, CliProcessorMetadata, ICliConfigurationOption, CliStateConfiguration, CliProcessCommand, ICliExecutionContext, ICliCompletionProvider, ICliCompletionContext, ICliModule } from '@qodalis/cli-core';
|
|
3
|
+
|
|
4
|
+
type TodoItem = {
|
|
5
|
+
id: number;
|
|
6
|
+
text: string;
|
|
7
|
+
completed: boolean;
|
|
8
|
+
createdAt: string;
|
|
9
|
+
completedAt?: string;
|
|
10
|
+
dueDate?: string;
|
|
11
|
+
};
|
|
12
|
+
declare function parseDueDate(input: string): string | null;
|
|
13
|
+
declare function formatRelativeDate(isoDate: string): string;
|
|
14
|
+
declare function isOverdue(todo: TodoItem): boolean;
|
|
15
|
+
declare function migrateTodoItem(item: any): TodoItem;
|
|
16
|
+
declare function lineThroughText(text: string): string;
|
|
17
|
+
|
|
18
|
+
declare class CliTodoCommandProcessor implements ICliCommandProcessor {
|
|
19
|
+
command: string;
|
|
20
|
+
description: string;
|
|
21
|
+
author: _qodalis_cli_core.ICliCommandAuthor;
|
|
22
|
+
version: string;
|
|
23
|
+
processors?: ICliCommandProcessor[];
|
|
24
|
+
metadata?: CliProcessorMetadata;
|
|
25
|
+
configurationOptions?: ICliConfigurationOption[];
|
|
26
|
+
stateConfiguration?: CliStateConfiguration;
|
|
27
|
+
private todos;
|
|
28
|
+
private nextId;
|
|
29
|
+
getTodos(): TodoItem[];
|
|
30
|
+
constructor();
|
|
31
|
+
processCommand(command: CliProcessCommand, context: ICliExecutionContext): Promise<void>;
|
|
32
|
+
writeDescription(context: ICliExecutionContext): void;
|
|
33
|
+
initialize(context: ICliExecutionContext): Promise<void>;
|
|
34
|
+
private formatTodoLine;
|
|
35
|
+
private registerSubProcessors;
|
|
36
|
+
private loadFromOldStorage;
|
|
37
|
+
private saveToStorage;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
declare class CliTodoIdCompletionProvider implements ICliCompletionProvider {
|
|
41
|
+
private readonly todoProcessor;
|
|
42
|
+
priority: number;
|
|
43
|
+
constructor(todoProcessor: CliTodoCommandProcessor);
|
|
44
|
+
getCompletions(context: ICliCompletionContext): string[];
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
declare const todoModule: ICliModule;
|
|
48
|
+
|
|
49
|
+
export { CliTodoCommandProcessor, CliTodoIdCompletionProvider, type TodoItem, formatRelativeDate, isOverdue, lineThroughText, migrateTodoItem, parseDueDate, todoModule };
|
package/public-api.d.ts
CHANGED
|
@@ -1,2 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as _qodalis_cli_core from '@qodalis/cli-core';
|
|
2
|
+
import { ICliCommandProcessor, CliProcessorMetadata, ICliConfigurationOption, CliStateConfiguration, CliProcessCommand, ICliExecutionContext, ICliCompletionProvider, ICliCompletionContext, ICliModule } from '@qodalis/cli-core';
|
|
3
|
+
|
|
4
|
+
type TodoItem = {
|
|
5
|
+
id: number;
|
|
6
|
+
text: string;
|
|
7
|
+
completed: boolean;
|
|
8
|
+
createdAt: string;
|
|
9
|
+
completedAt?: string;
|
|
10
|
+
dueDate?: string;
|
|
11
|
+
};
|
|
12
|
+
declare function parseDueDate(input: string): string | null;
|
|
13
|
+
declare function formatRelativeDate(isoDate: string): string;
|
|
14
|
+
declare function isOverdue(todo: TodoItem): boolean;
|
|
15
|
+
declare function migrateTodoItem(item: any): TodoItem;
|
|
16
|
+
declare function lineThroughText(text: string): string;
|
|
17
|
+
|
|
18
|
+
declare class CliTodoCommandProcessor implements ICliCommandProcessor {
|
|
19
|
+
command: string;
|
|
20
|
+
description: string;
|
|
21
|
+
author: _qodalis_cli_core.ICliCommandAuthor;
|
|
22
|
+
version: string;
|
|
23
|
+
processors?: ICliCommandProcessor[];
|
|
24
|
+
metadata?: CliProcessorMetadata;
|
|
25
|
+
configurationOptions?: ICliConfigurationOption[];
|
|
26
|
+
stateConfiguration?: CliStateConfiguration;
|
|
27
|
+
private todos;
|
|
28
|
+
private nextId;
|
|
29
|
+
getTodos(): TodoItem[];
|
|
30
|
+
constructor();
|
|
31
|
+
processCommand(command: CliProcessCommand, context: ICliExecutionContext): Promise<void>;
|
|
32
|
+
writeDescription(context: ICliExecutionContext): void;
|
|
33
|
+
initialize(context: ICliExecutionContext): Promise<void>;
|
|
34
|
+
private formatTodoLine;
|
|
35
|
+
private registerSubProcessors;
|
|
36
|
+
private loadFromOldStorage;
|
|
37
|
+
private saveToStorage;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
declare class CliTodoIdCompletionProvider implements ICliCompletionProvider {
|
|
41
|
+
private readonly todoProcessor;
|
|
42
|
+
priority: number;
|
|
43
|
+
constructor(todoProcessor: CliTodoCommandProcessor);
|
|
44
|
+
getCompletions(context: ICliCompletionContext): string[];
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
declare const todoModule: ICliModule;
|
|
48
|
+
|
|
49
|
+
export { CliTodoCommandProcessor, CliTodoIdCompletionProvider, type TodoItem, formatRelativeDate, isOverdue, lineThroughText, migrateTodoItem, parseDueDate, todoModule };
|