Skip to content

Commit

Permalink
Added a bash to python git cloner for ban (left /bin)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunamidori5 committed Feb 2, 2025
1 parent 66922a5 commit 27ffcd9
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 0 deletions.
1 change: 1 addition & 0 deletions Other_Programs/git_clone/.python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12
1 change: 1 addition & 0 deletions Other_Programs/git_clone/Readme
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
to run use ``uv run main.py``
21 changes: 21 additions & 0 deletions Other_Programs/git_clone/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"""
#!/usr/bin/env bash
source ~/sigma/logo.sh
read -p "github repo name (user/thing): " repolink
git clone https://github.com/${repolink}.git
echo "git clone succesful!"
"""

import subprocess

github_repo = input("github repo name (user/thing): ")

url = f"https://github.com/{github_repo}.git"

print(f"Downloading `{url}`")

subprocess.call(["git", "clone", url])
9 changes: 9 additions & 0 deletions Other_Programs/git_clone/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[project]
name = "git-clone"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"gitpython>=3.1.44",
]
46 changes: 46 additions & 0 deletions Other_Programs/git_clone/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 27ffcd9

Please sign in to comment.