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

added session toolbar #217

Merged
merged 3 commits into from
Aug 18, 2017
Merged

added session toolbar #217

merged 3 commits into from
Aug 18, 2017

Conversation

mikethebeer
Copy link

  • shows the current session user
  • shows the handler nodes connected with

crash-toolbar

@coveralls
Copy link

coveralls commented Aug 9, 2017

Coverage Status

Coverage decreased (-0.8%) to 82.875% when pulling 00074c2 on m/toolbar into 6a6070a on master.

@codecov-io
Copy link

codecov-io commented Aug 9, 2017

Codecov Report

Merging #217 into master will decrease coverage by 0.77%.
The diff coverage is 40.47%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #217      +/-   ##
==========================================
- Coverage   83.05%   82.28%   -0.78%     
==========================================
  Files          16       17       +1     
  Lines        2066     2105      +39     
==========================================
+ Hits         1716     1732      +16     
- Misses        350      373      +23
Impacted Files Coverage Δ
src/crate/crash/command.py 84.71% <ø> (+0.28%) ⬆️
src/crate/crash/repl.py 53.5% <18.18%> (-2.58%) ⬇️
src/crate/crash/layout.py 48.38% <48.38%> (ø)

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 33bee01...113c3ab. Read the comment docs.

@coveralls
Copy link

coveralls commented Aug 9, 2017

Coverage Status

Coverage decreased (-0.9%) to 82.762% when pulling 599f9de on m/toolbar into 6a6070a on master.

Copy link
Contributor

@matriv matriv left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@mfussenegger mfussenegger left a comment

Choose a reason for hiding this comment

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

When I use this branch and connect to a host that doesn't exist I get repeatedly CONNECT ERROR printed out as soon as I type something?

'create_layout',
)

def create_layout(message='', lexer=None,
Copy link
Member

Choose a reason for hiding this comment

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

please add a comment explaining the difference to create_prompt_layout

from prompt_toolkit.layout.margins import PromptMargin, ConditionalMargin
from prompt_toolkit.layout.utils import token_list_width

__all__ = (
Copy link
Member

Choose a reason for hiding this comment

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

no need to define __all__ as we don't do a import *

if cmd.is_conn_avaliable():
active_servers = cmd.connection.client.active_servers
active_servers = [n.replace('http://', '') for n in active_servers]
active_servers = [n.replace('https://', '') for n in active_servers]
Copy link
Member

Choose a reason for hiding this comment

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

could use generator expressions instead of list comprehensions to avoid the copying

@coveralls
Copy link

coveralls commented Aug 18, 2017

Coverage Status

Coverage decreased (-0.8%) to 82.28% when pulling 113c3ab on m/toolbar into 33bee01 on master.

4 similar comments
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.8%) to 82.28% when pulling 113c3ab on m/toolbar into 33bee01 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.8%) to 82.28% when pulling 113c3ab on m/toolbar into 33bee01 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.8%) to 82.28% when pulling 113c3ab on m/toolbar into 33bee01 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.8%) to 82.28% when pulling 113c3ab on m/toolbar into 33bee01 on master.

Copy link
Member

@mfussenegger mfussenegger left a comment

Choose a reason for hiding this comment

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

lgtm

Michael Beer added 3 commits August 18, 2017 13:51
* shows the current session user
* shows the handler nodes connected with
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.

None yet

5 participants