clarified available commands
This commit is contained in:
		
							parent
							
								
									e0c3580845
								
							
						
					
					
						commit
						febb4b3be7
					
				
					 1 changed files with 8 additions and 1 deletions
				
			
		
							
								
								
									
										9
									
								
								main.py
									
										
									
									
									
								
							
							
						
						
									
										9
									
								
								main.py
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -4,7 +4,14 @@ import yaml
 | 
			
		|||
import argparse
 | 
			
		||||
 | 
			
		||||
def main():
 | 
			
		||||
    parser = argparse.ArgumentParser()
 | 
			
		||||
    parser = argparse.ArgumentParser(prog='podman-tool',
 | 
			
		||||
                    description='Utility for managing podman containers',
 | 
			
		||||
                    epilog=""" commands: create: create services specified in ptconfig.yml without starting;
 | 
			
		||||
                    start: start one specific service or all services at once;
 | 
			
		||||
                    stop: stop one specific service or all services at once;
 | 
			
		||||
                    shell: run a shell in an existing service;
 | 
			
		||||
                    karaf: run a karaf shell in an existing service (only useful for openHAB;
 | 
			
		||||
                    down: stop all services and delete their pods""")
 | 
			
		||||
 | 
			
		||||
    if "REPO" in os.environ:
 | 
			
		||||
        repo = os.environ['REPO'] + '/'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue