Merge lp:~mvo/snappy/snappy-console into lp:~snappy-dev/snappy/snappy-moved-to-github
| Status: | Merged |
|---|---|
| Approved by: | Michael Vogt on 2015-09-18 |
| Approved revision: | 524 |
| Merged at revision: | 710 |
| Proposed branch: | lp:~mvo/snappy/snappy-console |
| Merge into: | lp:~snappy-dev/snappy/snappy-moved-to-github |
| Prerequisite: | lp:~mvo/snappy/snappy-with-decorator2 |
| Diff against target: |
255 lines (+224/-0) 4 files modified
cmd/snappy/cmd_console.go (+165/-0) cmd/snappy/cmd_console_test.go (+57/-0) debian/control (+1/-0) dependencies.tsv (+1/-0) |
| To merge this branch: | bzr merge lp:~mvo/snappy/snappy-console |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Michael Vogt | Approve on 2015-09-18 | ||
| Leo Arias | Needs Fixing on 2015-06-25 | ||
| John Lenton | 2015-06-16 | Approve on 2015-06-16 | |
| Snappy Tarmac | continuous-integration | Pending | |
| Federico Gimenez | continuous-integration | Pending | |
|
Review via email:
|
|||
This proposal supersedes a proposal from 2015-06-15.
Commit Message
Add new "snappy shell" command.
Description of the Change
This is a bit of a proof-of-concept and needs additional work to package the golang-liner package for debian.
It will add a new "snappy console" command that will run a minimal readline like console to run commands.
| Leo Arias (elopio) wrote : | # |
One detail to take into account is that liner has 13.7% of test coverage.
We should unit test our code and increase the liner unit test coverage, or cover both with integration or functional tests. Or well, there's always the option of just accepting the risk of adding untested dependencies to our project.
| Michael Vogt (mvo) wrote : | # |
@Leo Thanks! I haven't actually checked the coverage for liner, that is a good point indeed. I looked into the coverage problems and it seems a lot of it is because of the way it deals with input, I pushed https:/
| Leo Arias (elopio) wrote : | # |
A small detail found by vet:
$ go vet ./cmd/snappy/
cmd/snappy/
exit status 1
| Leo Arias (elopio) wrote : | # |
Also, lint doesn't like it.
Lint complains:
cmd/snappy/
| Michael Vogt (mvo) wrote : | # |
Thanks! I fixed the vet/lint issues.
| Michael Vogt (mvo) wrote : | # |
I put this up again, during the Lexington sprint we talked about that we want a snappy console experience. However, feel free to reject if you feel like its not mature enough yet.
- 524. By Michael Vogt on 2015-09-18
-
merged lp:snappy
| Michael Vogt (mvo) wrote : | # |
All vet/lint issues should be resolved, so I will approve based on the approve from John in the first comment.


Lovely. Obviously needs work, but lovely. You want to land this? I'm +1 for it.