From e85e98ee1305abe306499b9ce76aa9ef5779d503 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 26 Apr 2024 21:58:35 +0200 Subject: [PATCH] install_commands --- cd/__init__.py | 12 ++++++++++++ cd/__main__.py | 6 +++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/cd/__init__.py b/cd/__init__.py index e69de29..b8b46a5 100644 --- a/cd/__init__.py +++ b/cd/__init__.py @@ -0,0 +1,12 @@ +import os +import sys + + +def install_commands(): + print(__file__) + os.link(f'/usr/local/bin/cd-list-environment', __file__) + + +if __name__ == '__main__': + command, _ = sys.argv + print(f'command: {command}') diff --git a/cd/__main__.py b/cd/__main__.py index a840bb6..79f3d39 100644 --- a/cd/__main__.py +++ b/cd/__main__.py @@ -1 +1,5 @@ -print('TODO bootstrap') +import cd + + +if __name__ == '__main__': + cd.install_commands()