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

ACNA-621 - init --import #133

Merged
merged 10 commits into from
Jan 15, 2020
Merged

ACNA-621 - init --import #133

merged 10 commits into from
Jan 15, 2020

Conversation

moritzraho
Copy link
Member

@moritzraho moritzraho commented Jan 13, 2020

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@moritzraho moritzraho changed the title ACNA-621 - init --import [WIP] ACNA-621 - init --import Jan 13, 2020
@moritzraho
Copy link
Member Author

moritzraho commented Jan 13, 2020

missing tests - do not merge

@codecov
Copy link

codecov bot commented Jan 13, 2020

Codecov Report

Merging #133 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #133   +/-   ##
=======================================
  Coverage   97.85%   97.85%           
=======================================
  Files          18       18           
  Lines         466      466           
  Branches       56       56           
=======================================
  Hits          456      456           
  Misses         10       10

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3d9d42e...aff7a31. Read the comment docs.

@moritzraho moritzraho requested a review from shazron January 14, 2020 10:17
@moritzraho moritzraho changed the title [WIP] ACNA-621 - init --import ACNA-621 - init --import Jan 14, 2020
@moritzraho
Copy link
Member Author

@shazron or @purplecabbage ready to review!

Copy link
Member

@purplecabbage purplecabbage left a comment

Choose a reason for hiding this comment

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

A couple nits, looks good though

if (flags.import) {
const config = loadConfigFile(flags.import).values

projectName = config.name // must be defined
Copy link
Member

Choose a reason for hiding this comment

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

There is some weirdness here ...
If I specify a project path as an arg to init, then the directory is created, and becomes cwd.
If a config file is used, then the project name comes from there, but no directory is created, and project is placed in cwd.

Ultimately this is probably just something we need to document..

expect(TheCommand.flags.import.char).toBe('i')
})

test('args', async () => {
Copy link
Member

Choose a reason for hiding this comment

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

We previously removed tests that were this tightly tied to the implementation.
Test should only verify that arg has description, and default, but not what the values actually are.

@purplecabbage purplecabbage merged commit 1b8ef64 into adobe:master Jan 15, 2020
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.

3 participants