cli: build command migrated to docopts #149

Merged
merged 1 commit into from Dec 4, 2015

Conversation

Projects
None yet
2 participants
Collaborator

sergiusens commented Dec 3, 2015

Signed-off-by: Sergio Schvezov sergio.schvezov@canonical.com

snapcraft/lifecycle.py
+ if step == 'pull':
+ part.pull()
+ elif step == 'build':
+ part.build()
@elopio

elopio Dec 3, 2015

Member

would something like getattr(part, step)(), too obscure?

snapcraft/tests/test_commands_build.py
+from snapcraft.commands import build
+
+
+class PullCommandTestCase(tests.TestCase):
@elopio

elopio Dec 3, 2015

Member

BuildCommandTestCase.

Member

elopio commented Dec 3, 2015

lgtm. Just one copy&paste error.

cli: build command migrated to docopts
Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>

sergiusens added a commit that referenced this pull request Dec 4, 2015

Merge pull request #149 from sergiusens/08-docopts-build
cli: build command migrated to docopts

@sergiusens sergiusens merged commit ffcb9c7 into snapcore:new-cli Dec 4, 2015

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage increased (+0.6%) to 80.738%
Details

@sergiusens sergiusens deleted the sergiusens:08-docopts-build branch Dec 4, 2015

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