imdone-cli 0.1.2 → 0.1.4
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/dist/index.cjs +607 -4821
- package/dist/index.cjs.map +4 -4
- package/package.json +3 -3
- package/src/adapters/imdone.js +6 -1
package/package.json
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
{
|
2
2
|
"name": "imdone-cli",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.4",
|
4
4
|
"author": "Jesse Piascik",
|
5
5
|
"description": "An imdone cli that automates your task updates with markdown files.",
|
6
|
+
"license": "Proprietary",
|
6
7
|
"main": "src/index.js",
|
7
8
|
"type": "module",
|
8
9
|
"bin": {
|
@@ -16,12 +17,11 @@
|
|
16
17
|
"test": "vitest --run",
|
17
18
|
"test-ci": "vitest --run"
|
18
19
|
},
|
19
|
-
"license": "ISC",
|
20
20
|
"dependencies": {
|
21
21
|
"chalk": "^5.4.1",
|
22
22
|
"commander": "^13.1.0",
|
23
23
|
"dotenv": "16.4.5",
|
24
|
-
"imdone-core": "^2.0.
|
24
|
+
"imdone-core": "^2.0.9",
|
25
25
|
"inquirer": "^12.5.2",
|
26
26
|
"jsonwebtoken": "^9.0.2",
|
27
27
|
"ora": "^8.2.0",
|
package/src/adapters/imdone.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { logger } from 'imdone-core/lib/adapters/logger.js'
|
2
2
|
import { createFileSystemProject } from 'imdone-core/lib/project-factory.js'
|
3
3
|
import { constants } from 'imdone-core/lib/constants.js'
|
4
|
-
import { load,
|
4
|
+
import { load, isImdoneProject } from 'imdone-core/lib/adapters/storage/config.js'
|
5
5
|
import { isImdoneInit, addAndCommitChanges } from './git.js'
|
6
6
|
import { appendFile } from 'fs/promises'
|
7
7
|
import path from 'path'
|
@@ -11,6 +11,11 @@ import { TAGS_FILE_PATH } from 'imdone-core/lib/adapters/storage/tags.js'
|
|
11
11
|
import { preparePathForWriting, writeFile } from 'imdone-core/lib/adapters/file-gateway.js'
|
12
12
|
const { CONFIG_FILE_YML, IGNORE_FILE } = constants
|
13
13
|
|
14
|
+
export async function getConfigPath(projectPath) {
|
15
|
+
const configPath = path.join(projectPath, CONFIG_FILE_YML)
|
16
|
+
return configPath
|
17
|
+
}
|
18
|
+
|
14
19
|
export async function getProject(projectPath, feedback = {}) {
|
15
20
|
if (!await isImdoneProject(projectPath)) {
|
16
21
|
throw new Error(`Project is not initialized. Run "imdone init" to initialize the project.`)
|