Skip to content
#

Shell

A shell is a text-based terminal, used for manipulating programs and files. Shell scripts typically manage program execution.

Here are 823 public repositories matching this topic...

typer
dbanty
dbanty commented Apr 30, 2020

Describe the bug

The function typer.main.get_group is annotated as returning a click.Command which isn't wrong because a click.Group is a click.Command, but means I have to cast to group when trying to integrate with existing Click applications.

To Reproduce

Steps to reproduce the behavior with a minimum self-contained file.

Replace each part with your own scenario:

Perilin
Perilin commented Dec 24, 2017

Filtering by command is great, but how about also filtering by currently active directory?
I've quickly hammered something into place that works using preexec...

# Added to end of  ~/.bashrc

__peri_filter_preexec() { if [[ "${PWD}" =~ .*Private.* ]] ; then __BH_SAVE_COMMAND=''; fi }
if [ -f ~/.bashhub/deps/bash-preexec.sh ]; then source  ~/.bashhub/deps/bash-preexec.sh ; preexec_f
bake
rednafi
rednafi commented Nov 17, 2019

Currently, if I run bake command when the Bakefile is empty, the error message seems very scary:

Traceback (most recent call last):
  File "/home/redowan/.local/share/virtualenvs/flask-template-wBuRwttx/bin/bake", line 8, in <module>
    sys.exit(entrypoint())
  File "/home/redowan/.local/share/virtualenvs/flask-template-wBuRwttx/lib/python3.7/site-packages/click/core.py", line 764,

Created by Glenda Schroeder

Released 1965

Wikipedia
Wikipedia

Related Topics

bash
You can’t perform that action at this time.