Skip to content

Conversation

@anselor
Copy link
Contributor

@anselor anselor commented May 22, 2018

… sub-commands

Added hint suppression on a per-parameter basis
Added helper function to force an parameter to fall back to bash completion instead of using Cmd2 completion.

  • Hinting is still enabled by default but can be suppressed in the helper function.

… sub-commands

Added hint suppression on a per-parameter basis
Added helper function to force an parameter to fall back to bash completion instead of using Cmd2 completion.
  - Hinting is still enabled by default but can be suppressed in the helper function.
@codecov
Copy link

codecov bot commented May 22, 2018

Codecov Report

Merging #411 into master will decrease coverage by 0.24%.
The diff coverage is 43.75%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #411      +/-   ##
=========================================
- Coverage   89.45%   89.2%   -0.25%     
=========================================
  Files           8       8              
  Lines        2579    2594      +15     
=========================================
+ Hits         2307    2314       +7     
- Misses        272     280       +8
Impacted Files Coverage Δ
cmd2/argcomplete_bridge.py 18.94% <22.22%> (+0.55%) ⬆️
cmd2/argparse_completer.py 89.4% <71.42%> (-0.28%) ⬇️

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 c2594ff...3d95362. Read the comment docs.

except AttributeError:
DEFAULT_COMPLETER = argcomplete.completers.FilesCompleter()

from cmd2.argparse_completer import ACTION_ARG_CHOICES, ACTION_SUPPRESS_HINT
Copy link
Member

Choose a reason for hiding this comment

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

Are you happy with argcomplete_bridge.py depending on argparse_completer.py? If so then everything looks fine to me.

@tleonhardt tleonhardt merged commit 5d64ebe into master May 23, 2018
@tleonhardt tleonhardt deleted the autocompleter branch May 23, 2018 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants