Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(apps): Apps create command with feature flag #262

Merged
merged 11 commits into from
Mar 1, 2022

Conversation

janelletavares
Copy link
Contributor

@janelletavares janelletavares commented Feb 25, 2022

Description of change

meroxa apps create NAME

Fixes https://github.com/meroxa/turbine-project/issues/42

Type of change

  • New feature
  • Bug fix
  • Refactor
  • Documentation

How was this tested?

  • Unit Tests
  • Tested in minikube

Demo

Screenshot from 2022-02-25 14-19-02

Additional references

Documentation updated

@janelletavares janelletavares marked this pull request as ready for review February 25, 2022 22:19
@janelletavares janelletavares requested review from a team, lyuboxa and anna-cross and removed request for a team February 25, 2022 22:19
Copy link
Member

@raulb raulb left a comment

Choose a reason for hiding this comment

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

Need to change the flag name (it shouldn't be path, but language instead)

cmd/meroxa/root/apps/apps.go Outdated Show resolved Hide resolved
cmd/meroxa/root/apps/create.go Show resolved Hide resolved
@raulb raulb self-requested a review March 1, 2022 19:16
return nil
}

func (c *Create) getLang() (string, error) {
if path := c.flags.Path; path != "" {
Copy link
Contributor Author

@janelletavares janelletavares Mar 1, 2022

Choose a reason for hiding this comment

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

what if path is pwd... we still need that to be specified as a flag?

what if the supplied language is different from the app.json language?

Copy link
Member

@raulb raulb Mar 2, 2022

Choose a reason for hiding this comment

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

what if path is pwd... we still need that to be specified as a flag?

@janelletavares That's a great question. I'm making specifying the path mandatory (notice I'm not reading from pwd) but maybe we could make that change.

what if the supplied language is different from the app.json language?

Language specified in the app.json currently takes precedence (i.e. if both provided we ignore the currently ignore --lang)

@janelletavares janelletavares merged commit 43336a4 into master Mar 1, 2022
@janelletavares janelletavares deleted the applications-create branch March 1, 2022 23:39
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