Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Nosecomplete

Nosecomplete is a nose plugin for completing test modules/classes/methods/functions from the command line.

Nosecomplete is composed of two pieces: a script called 'nosecomplete' and a shell completion function that calls the script.
Nosecomplete is composed of two pieces: a script called 'completenose' and a shell completion function that calls the script.

An example using tab completion:

Expand All @@ -16,9 +16,9 @@ An example using tab completion:
utils/test_decorators.py:TestRetry.test_eventual_success
utils/test_decorators.py:TestRetry.test_expires_raises

An example calling nosecomplete directly:
An example calling completenose directly:

% nosecomplete utils/test_decorators.py:Test<ENTER>
% completenose utils/test_decorators.py:Test<ENTER>
utils/test_decorators.py:TestCache
utils/test_decorators.py:TestRetry

Expand Down Expand Up @@ -82,7 +82,7 @@ Add the following snippet to your .bashrc:
cur=$(printf "%s" ${COMP_WORDS[@]:$i})
fi
fi
COMPREPLY=(`nosecomplete ${cur} 2>/dev/null`)
COMPREPLY=(`completenose ${cur} 2>/dev/null`)
__ltrim_colon_completions "$cur"
}
complete -o nospace -F _nosetests nosetests
Expand Down Expand Up @@ -111,7 +111,7 @@ zsh
_nosetests()
{
cur="${COMP_WORDS[COMP_CWORD]}"
COMPREPLY=(`nosecomplete ${cur} 2>/dev/null`)
COMPREPLY=(`completenose ${cur} 2>/dev/null`)
}
complete -o nospace -F _nosetests nosetests
```
Expand All @@ -124,7 +124,7 @@ fish
```fish
function __fish_nosetests
set -l file (commandline -ot)
command nosecomplete $file ^/dev/null | tr ' ' '\n'
command completenose $file ^/dev/null | tr ' ' '\n'
end
complete -f -c nosetests -a '(__fish_nosetests)' -d 'Nosetests'
```
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
license='BSD',
py_modules=['nosecomplete'],
install_requires=['nose'],
entry_points={'console_scripts': ['nosecomplete=nosecomplete:main']})
entry_points={'console_scripts': ['completenose=nosecomplete:main']})