Skip to content

Add command to init project from cli#43

Open
noorvir wants to merge 2 commits intomasterfrom
noorvir/project-init
Open

Add command to init project from cli#43
noorvir wants to merge 2 commits intomasterfrom
noorvir/project-init

Conversation

@noorvir
Copy link
Contributor

@noorvir noorvir commented Jul 18, 2023

Adds the unweave init command to create a new project from the CLI

Copy link
Contributor

@ernesto-jimenez ernesto-jimenez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CleanShot 2023-07-18 at 17 46 28@2x

CleanShot 2023-07-18 at 17 47 53@2x

It works. Testing locally failed to print the name because we are yet to deploy the updated API endpoint.

Comment on lines +60 to +63
res := &types.ProjectCreateResponse{}
if err = a.client.ExecuteRest(ctx, req, res); err != nil {
return types.Project{}, err
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: do we prefer that format to this? Or we don't care either way?

	var res types.ProjectCreateResponse
 	if err = a.client.ExecuteRest(ctx, req, &res); err != nil {
 		return types.Project{}, err
 	}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants