-
-
Save itrewm/510b94be76f660f912d9c7e8a44d93ca to your computer and use it in GitHub Desktop.
install golang repository with python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
def install_go_repository(repository_url): | |
try: | |
subprocess.run(['go', 'install', repository_url], check=True) | |
print(f"Successfully installed {repository_url}") | |
except subprocess.CalledProcessError: | |
print(f"Failed to install {repository_url}") | |
if __name__ == "__main__": | |
# KATANA | |
install_go_repository("github.com/projectdiscovery/katana/cmd/katana@latest") | |
# You can add more libraries |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
اوف