#!/usr/local/bin/bash

# mario-new-module card-open -n

cd src

_targetModule=$1
_targetModulePath=business-modules

if [[ ! -d $_targetModulePath ]]; then
  mkdir $_targetModulePath
fi

if [[ $2 ]]; then
  _isNative=-n
fi

cd $_targetModulePath

mario-create-module $_targetModule $_isNative

cd ..
cd ..

mario-registered-module $_targetModule $_targetModulePath $_isNative
