vm-tool 0.9__tar.gz → 1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: vm_tool
3
- Version: 0.9
3
+ Version: 1.0
4
4
  Summary: A tool to setup VMs using Ansible.
5
5
  License: MIT
6
6
  Description-Content-Type: text/markdown
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='vm_tool',
5
- version='0.9',
5
+ version='1.0',
6
6
  packages=find_packages(),
7
7
  description='A tool to setup VMs using Ansible.',
8
8
  long_description='''
@@ -29,10 +29,10 @@ setup(
29
29
  'ansible',
30
30
  'ansible-runner',
31
31
  ],
32
- # entry_points={
33
- # 'console_scripts': [
34
- # 'vm_tool=vm_tool.cli:main',
35
- # ],
36
- # },
32
+ entry_points={
33
+ 'console_scripts': [
34
+ 'vm_tool=vm_tool.cli:main',
35
+ ],
36
+ },
37
37
  license='MIT',
38
38
  )
@@ -0,0 +1,14 @@
1
+ import argparse
2
+
3
+ def main():
4
+ parser = argparse.ArgumentParser(description='Setup VMs using Ansible.')
5
+ parser.add_argument('--version', action='version', version='vm_tool 1.0')
6
+
7
+ args = parser.parse_args()
8
+
9
+ # If no arguments are provided, print the help message
10
+ if not vars(args):
11
+ parser.print_help()
12
+
13
+ if __name__ == '__main__':
14
+ main()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: vm_tool
3
- Version: 0.9
3
+ Version: 1.0
4
4
  Summary: A tool to setup VMs using Ansible.
5
5
  License: MIT
6
6
  Description-Content-Type: text/markdown
@@ -7,5 +7,6 @@ vm_tool/runner.py
7
7
  vm_tool.egg-info/PKG-INFO
8
8
  vm_tool.egg-info/SOURCES.txt
9
9
  vm_tool.egg-info/dependency_links.txt
10
+ vm_tool.egg-info/entry_points.txt
10
11
  vm_tool.egg-info/requires.txt
11
12
  vm_tool.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ vm_tool = vm_tool.cli:main
@@ -1,30 +0,0 @@
1
- # filepath: /Users/sunnysinha/Desktop/Projects/vm_setup/vm_tool/cli.py
2
- import argparse
3
- from .runner import SetupRunner
4
-
5
- def main():
6
- parser = argparse.ArgumentParser(description='Setup VMs using Ansible.')
7
- parser.add_argument('--ssh_host', required=True, help='SSH host (e.g. 192.168.1.1)')
8
- parser.add_argument('--ssh_user', required=True, help='SSH user (e.g. root)')
9
- parser.add_argument('--ssh_password', required=True, help='SSH password')
10
- parser.add_argument('--become_pass', required=True, help='Become password')
11
- parser.add_argument('--github_username', required=True, help='GitHub username')
12
- parser.add_argument('--github_token', required=True, help='GitHub token')
13
- parser.add_argument('--github_project_url', required=True, help='GitHub project URL (e.g. https://github.com/username/repo)')
14
-
15
- args = parser.parse_args()
16
-
17
- runner = SetupRunner(
18
- ssh_host=args.ssh_host,
19
- ssh_user=args.ssh_user,
20
- ssh_password=args.ssh_password,
21
- become_pass=args.become_pass,
22
- github_username=args.github_username,
23
- github_token=args.github_token,
24
- github_project_url=args.github_project_url
25
- )
26
-
27
- runner.run_setup()
28
-
29
- if __name__ == '__main__':
30
- main()
File without changes
File without changes
File without changes
File without changes
File without changes