Skip to content

Commit

Permalink
Add prototypes of some basic functions to be used
Browse files Browse the repository at this point in the history
  • Loading branch information
cinek810 committed Jan 26, 2022
1 parent c924c60 commit 2ed16bd
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ansible_deploy/command_line.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
"""Main module for ansible-deploy"""

import sys

def get_sub_command():
"""Function to check the first arguments (argv[1..]) looking for a subcommand"""

def parse_options():
"""Generic function to parse options for all commands, we validate if the option was allowed for
specific subcommand outside"""

def validate_options(options, subcommand):
"""Function checking if the options set are allowed in this subcommand"""

def load_configuration():
"""Function responsible for reading configuration files and running a schema validator against
it"""

def validate_user_infra_stage():
"""Function checking if user has rights to execute command on selected infrastructure
Required for: run, lock and unlock operations"""

def validate_user_task():
"""Function checking if user has rights to execute the task
Rquired for: run"""

def main():
"""ansible-deploy endpoint function"""
sys.exit(0)

0 comments on commit 2ed16bd

Please sign in to comment.