You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			37 lines
		
	
	
		
			571 B
		
	
	
	
		
			Bash
		
	
			
		
		
	
	
			37 lines
		
	
	
		
			571 B
		
	
	
	
		
			Bash
		
	
#!/bin/bash
 | 
						|
 | 
						|
set -e
 | 
						|
export PYTHONPATH=${PWD}/spec
 | 
						|
 | 
						|
RUN_CMD="pipenv run mamba"
 | 
						|
 | 
						|
specs=()
 | 
						|
for arg in "$@"; do
 | 
						|
  if [[ "$arg" = "-d" ]]; then
 | 
						|
    export KASMVNC_SPEC_DEBUG_OUTPUT=1
 | 
						|
    continue;
 | 
						|
  fi
 | 
						|
  if [[ "$arg" = "-v" ]]; then
 | 
						|
    verbose=1
 | 
						|
    continue
 | 
						|
  fi
 | 
						|
 | 
						|
  specs+=("$arg")
 | 
						|
done
 | 
						|
set -- "${specs[@]}"
 | 
						|
 | 
						|
if [[ "$1" = "-h" || "$1" = "--help" ]]; then
 | 
						|
  echo >&2 "Usage: $(basename "$0") [-d] [-v] <spec...>"
 | 
						|
  exit 0
 | 
						|
fi
 | 
						|
 | 
						|
if [[ -n "$verbose" ]]; then
 | 
						|
 RUN_CMD="$RUN_CMD --format=documentation"
 | 
						|
fi
 | 
						|
 | 
						|
if [[ -n "$1" ]]; then
 | 
						|
  $RUN_CMD "$@"
 | 
						|
else
 | 
						|
  $RUN_CMD spec/*_spec.py
 | 
						|
fi
 |