Skip to content
Draft
6 changes: 6 additions & 0 deletions .changeset/big-moments-grin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@openfn/lexicon': minor
'@openfn/project': minor
---

Update v1 provisioner project structure (workflows, jobs, edges and triggers as record, not array)
24 changes: 13 additions & 11 deletions packages/cli/src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import docgen from './docgen/handler';
import docs from './docs/handler';
import metadata from './metadata/handler';
import pull from './pull/handler';
import * as projects from './projects/handler';
import * as projects from './projects';
import * as repo from './repo/handler';

import createLogger, { CLI, Logger } from './util/logger';
Expand All @@ -23,28 +23,29 @@ import { CLIError } from './errors';

export type CommandList =
| 'apollo'
| 'compile'
| 'collections-get'
| 'collections-set'
| 'collections-remove'
| 'collections-set'
| 'compile'
| 'deploy'
| 'docgen'
| 'docs'
| 'execute'
| 'metadata'
| 'pull'
| 'projects'
| 'project-checkout'
| 'project-deploy'
| 'project-fetch'
| 'project-list'
| 'project-merge'
| 'project-pull'
| 'project-version'
| 'project'
| 'projects'
| 'pull'
| 'repo-clean'
| 'repo-install'
| 'repo-list'
| 'repo-pwd'
| 'project-pull'
| 'project-list'
| 'project-version'
| 'project-merge'
| 'project-checkout'
| 'project-fetch'
| 'test'
| 'version';

Expand All @@ -67,6 +68,7 @@ const handlers = {
['repo-install']: repo.install,
['repo-pwd']: repo.pwd,
['repo-list']: repo.list,
['project-deploy']: projects.deploy,
['project-pull']: projects.pull,
['project-list']: projects.list,
['project-version']: projects.version,
Expand Down
42 changes: 0 additions & 42 deletions packages/cli/src/deploy/beta.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/cli/src/deploy/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from '@openfn/deploy';
import type { Logger } from '../util/logger';
import { DeployOptions } from './command';
import * as beta from './beta';
import * as beta from '../projects/deploy';

export type DeployFn = typeof deploy;

Expand Down
2 changes: 2 additions & 0 deletions packages/cli/src/projects/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import merge from './merge';
import checkout from './checkout';
import fetch from './fetch';
import { command as pull } from './pull';
import { command as deploy } from './deploy';

import type yargs from 'yargs';

Expand All @@ -15,6 +16,7 @@ export const projectsCommand = {
builder: (yargs: yargs.Argv) =>
yargs
.command(pull)
.command(deploy)
.command(list)
.command(version)
.command(merge)
Expand Down
Loading