@forgehive/forge-cli 0.3.10 → 0.3.12

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.
Files changed (38) hide show
  1. package/dist/runner.js +32 -6
  2. package/dist/tasks/auth/add.d.ts +16 -0
  3. package/dist/tasks/auth/add.js +56 -4
  4. package/dist/tasks/auth/clear.d.ts +16 -0
  5. package/dist/tasks/auth/clear.js +54 -0
  6. package/dist/tasks/auth/list.d.ts +7 -1
  7. package/dist/tasks/auth/list.js +28 -8
  8. package/dist/tasks/auth/switch.js +24 -8
  9. package/dist/tasks/project/create.d.ts +27 -0
  10. package/dist/tasks/project/create.js +96 -0
  11. package/dist/tasks/project/link.d.ts +22 -0
  12. package/dist/tasks/project/link.js +95 -0
  13. package/dist/tasks/project/sync.d.ts +116 -0
  14. package/dist/tasks/project/sync.js +152 -0
  15. package/dist/tasks/project/unlink.d.ts +11 -0
  16. package/dist/tasks/project/unlink.js +65 -0
  17. package/dist/tasks/task/createTask.d.ts +12 -0
  18. package/dist/tasks/task/createTask.js +55 -5
  19. package/dist/tasks/task/run.d.ts +10 -2
  20. package/dist/tasks/task/run.js +14 -6
  21. package/dist/tasks/types.d.ts +4 -0
  22. package/dist/test/tasks/create.test.js +4 -3
  23. package/forge.json +14 -0
  24. package/package.json +6 -5
  25. package/src/runner.ts +32 -7
  26. package/src/tasks/auth/add.ts +66 -4
  27. package/src/tasks/auth/clear.ts +63 -0
  28. package/src/tasks/auth/list.ts +30 -8
  29. package/src/tasks/auth/switch.ts +24 -8
  30. package/src/tasks/project/README.md +268 -0
  31. package/src/tasks/project/create.ts +111 -0
  32. package/src/tasks/project/link.ts +106 -0
  33. package/src/tasks/project/sync.ts +202 -0
  34. package/src/tasks/project/unlink.ts +74 -0
  35. package/src/tasks/task/createTask.ts +72 -5
  36. package/src/tasks/task/run.ts +17 -6
  37. package/src/tasks/types.ts +4 -0
  38. 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 status
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
  })