kauth / auto-click-auto Goto Github PK
View Code? Open in Web Editor NEWAutomatically enable tab autocompletion for shells in Click CLI applications.
Home Page: https://pypi.org/project/auto-click-auto
License: MIT License
Automatically enable tab autocompletion for shells in Click CLI applications.
Home Page: https://pypi.org/project/auto-click-auto
License: MIT License
When running the auto setup with python 3.11 I get this in the shell:
❯ ai-tdd setup
Tab autocomplete configuration already setup in ~/.config/fish/completions/ai-tdd.ShellType.FISH.
The ~/.ShellType.ZSHrc configuration file does not exist.
The ~/.ShellType.BASHrc configuration file does not exist.
with python 3.10:
❯ ai-tdd setup
Adding tab autocomplete configuration in ~/.config/fish/completions/ai-tdd.fish ...
Restart or create a new shell session for the changes to take effect.
The ~/.bashrc configuration file does not exist.
The ~/.zshrc configuration file does not exist.
I guess the problem is that in 3.11 the automated f string cast changed
and all these lines in the core.py are affected:
auto-click-auto/auto_click_auto/core.py
Line 88 in 31f5266
Can I help here?
Originally reported in repository-service-tuf/repository-service-tuf-cli#469.
When running a CLI program, installed in a virtual environment, when starting a shell session, users get the following error:
pyenv: <cli-program>: command not found
auto-click-auto
will add a check in the shell configuration for whether the program is executable. This will keep shell sessions free from "command not found" errors when the autocompleted program is not installed system-wide.
On a few systems I've tested MacOS/OSX is reporting Darwin
:
>>> import platform
>>> platform.system()
'Darwin'
Should be fairly easy to update core.py?
# Check that the program is run on one of the supported Operating Systems
supported_os = ("Linux", "MacOS", "Darwin")
I've hacked this change into my site-packages
for auto_click_auto and it does seem to work okay.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.