Skip to content

Conversation

surahman
Copy link
Contributor

@surahman surahman commented May 27, 2021

Issue #2108:
Should output -- when no active mounts are available in conformity with table output for other unavailable information:
https://github.com/surahman/multipass/blob/5f9ba4bd6db5fa31f59cbae0fbbf8fb3556e2d29/tests/test_output_formatter.cpp#L431-L452

The other formatters seem to already handle this situation. YAML outputs its null indicator as a tilde ~ character, JSON will create a null sub-record, and CSV will output an empty field.

surahman added 4 commits May 27, 2021 14:51
[tests] no mounts.
[cli] adding empty mount info.
[cli] outputs "--" when no active mounts.
@codecov
Copy link

codecov bot commented May 27, 2021

Codecov Report

Merging #2124 (d56c5cf) into main (b21f2d3) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2124   +/-   ##
=======================================
  Coverage   81.86%   81.86%           
=======================================
  Files         184      184           
  Lines        9455     9458    +3     
=======================================
+ Hits         7740     7743    +3     
  Misses       1715     1715           
Impacted Files Coverage Δ
src/client/cli/formatter/table_formatter.cpp 96.61% <100.00%> (+0.08%) ⬆️

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 b21f2d3...d56c5cf. Read the comment docs.

@surahman surahman changed the title Info for no active mounts [cli] Info for no active mounts May 28, 2021
@surahman surahman changed the title [cli] Info for no active mounts [cli] Info For No Active Mounts May 28, 2021
@townsend2010
Copy link
Contributor

bors try

bors bot added a commit that referenced this pull request Jun 3, 2021
Copy link
Contributor

@townsend2010 townsend2010 left a comment

Choose a reason for hiding this comment

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

LGTM

bors merge

bors bot added a commit that referenced this pull request Jun 3, 2021
2124: [cli] Info For No Active Mounts r=townsend2010 a=surahman

**_Issue #2108:_**
Should output `--` when no active mounts are available in conformity with `table` output for other unavailable information:
https://github.com/surahman/multipass/blob/5f9ba4bd6db5fa31f59cbae0fbbf8fb3556e2d29/tests/test_output_formatter.cpp#L431-L452

The other formatters seem to already handle this situation. `YAML` outputs its `null` indicator as a tilde `~` character, `JSON` will create a `null` sub-record, and  `CSV` will output an empty field.

Co-authored-by: Saad Ur Rahman <[email protected]>
@bors
Copy link
Contributor

bors bot commented Jun 3, 2021

@bors
Copy link
Contributor

bors bot commented Jun 3, 2021

Build failed:

@townsend2010
Copy link
Contributor

bors retry

bors bot added a commit that referenced this pull request Jun 3, 2021
2124: [cli] Info For No Active Mounts r=townsend2010 a=surahman

**_Issue #2108:_**
Should output `--` when no active mounts are available in conformity with `table` output for other unavailable information:
https://github.com/surahman/multipass/blob/5f9ba4bd6db5fa31f59cbae0fbbf8fb3556e2d29/tests/test_output_formatter.cpp#L431-L452

The other formatters seem to already handle this situation. `YAML` outputs its `null` indicator as a tilde `~` character, `JSON` will create a `null` sub-record, and  `CSV` will output an empty field.

Co-authored-by: Saad Ur Rahman <[email protected]>
@bors
Copy link
Contributor

bors bot commented Jun 3, 2021

Build failed:

@townsend2010
Copy link
Contributor

Try it again:

bors retry

bors bot added a commit that referenced this pull request Jun 3, 2021
2124: [cli] Info For No Active Mounts r=townsend2010 a=surahman

**_Issue #2108:_**
Should output `--` when no active mounts are available in conformity with `table` output for other unavailable information:
https://github.com/surahman/multipass/blob/5f9ba4bd6db5fa31f59cbae0fbbf8fb3556e2d29/tests/test_output_formatter.cpp#L431-L452

The other formatters seem to already handle this situation. `YAML` outputs its `null` indicator as a tilde `~` character, `JSON` will create a `null` sub-record, and  `CSV` will output an empty field.

Co-authored-by: Saad Ur Rahman <[email protected]>
@bors
Copy link
Contributor

bors bot commented Jun 3, 2021

Build failed:

@townsend2010
Copy link
Contributor

Ok, this is the last time, otherwise I'm just going to merge manually.

bors retry

@bors
Copy link
Contributor

bors bot commented Jun 3, 2021

Build failed:

@townsend2010
Copy link
Contributor

Ok, I'm bored with bors. Will merge this manually.

@townsend2010 townsend2010 merged commit 7a1e2ba into canonical:main Jun 3, 2021
@Saviq Saviq added this to the v1.7.0 milestone Jun 23, 2021
@Saviq Saviq linked an issue Jun 23, 2021 that may be closed by this pull request
@Saviq Saviq removed this from the v1.7.0 milestone Jun 23, 2021
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.

Add info about mounting to info even if nothing is mounted to instance
3 participants