@forgehive/forge-cli 0.3.10 → 0.3.11
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/runner.js +25 -2
- package/dist/tasks/auth/list.d.ts +5 -1
- package/dist/tasks/auth/list.js +20 -8
- package/dist/tasks/auth/switch.js +24 -8
- package/dist/tasks/project/create.d.ts +27 -0
- package/dist/tasks/project/create.js +96 -0
- package/dist/tasks/project/link.d.ts +22 -0
- package/dist/tasks/project/link.js +95 -0
- package/dist/tasks/project/unlink.d.ts +11 -0
- package/dist/tasks/project/unlink.js +65 -0
- package/dist/tasks/task/createTask.js +5 -4
- package/dist/tasks/types.d.ts +1 -0
- package/dist/test/tasks/create.test.js +4 -3
- package/forge.json +14 -0
- package/package.json +4 -3
- package/src/runner.ts +25 -3
- package/src/tasks/auth/list.ts +22 -8
- package/src/tasks/auth/switch.ts +24 -8
- package/src/tasks/project/README.md +268 -0
- package/src/tasks/project/create.ts +111 -0
- package/src/tasks/project/link.ts +106 -0
- package/src/tasks/project/unlink.ts +74 -0
- package/src/tasks/task/createTask.ts +5 -4
- package/src/tasks/types.ts +1 -0
- package/src/test/tasks/create.test.ts +4 -3
|
@@ -32,11 +32,10 @@ export const newTask = createTask({
|
|
|
32
32
|
boundaries,
|
|
33
33
|
fn: async function (argv, boundaries) {
|
|
34
34
|
console.log('input:', argv)
|
|
35
|
-
console.log('boundaries:', boundaries)
|
|
35
|
+
console.log('boundaries:', Object.keys(boundaries))
|
|
36
36
|
// Your task implementation goes here
|
|
37
|
-
const status = { status: 'Ok' }
|
|
38
37
|
|
|
39
|
-
return
|
|
38
|
+
return {}
|
|
40
39
|
}
|
|
41
40
|
})
|
|
42
41
|
|
|
@@ -103,5 +102,7 @@ describe('Create task', () => {
|
|
|
103
102
|
const forgeContent = await fs.promises.readFile(path.join(rootDir, 'forge.json'), 'utf-8') as string
|
|
104
103
|
const forgeConf = JSON.parse(forgeContent)
|
|
105
104
|
expect(forgeConf.tasks['sample:newTask']).toBeDefined()
|
|
105
|
+
expect(forgeConf.tasks['sample:newTask'].uuid).toBeDefined()
|
|
106
|
+
expect(typeof forgeConf.tasks['sample:newTask'].uuid).toBe('string')
|
|
106
107
|
})
|
|
107
108
|
})
|