Skip to content

Commit

Permalink
文件上传和版本信息
Browse files Browse the repository at this point in the history
  • Loading branch information
boaosady committed Sep 21, 2017
1 parent d1d1a34 commit 1508621
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 0 deletions.
33 changes: 33 additions & 0 deletions 2.文件上传.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash
author='Evan'
projectname='Homedoctor'
passkeys='code,flag,message'
fileuri='/Users/Evan/Desktop/index.html'
debug=true
verbose=false
modulename='taskFileUpload'
models=(
#文件上传
'modelFileUpload'
)

for model in ${models[@]}; do
types=${types}${model},
done
types=${types}

if [ "$debug" = true ] ; then
enableDebug='--debug'
fi

if [ "$verbose" = true ] ; then
enableVerbose='--verbose'
fi

./app.js ${enableVerbose} ${enableDebug} \
-C ${types} \
-P ${passkeys} \
-f ${fileuri} \
-a ${author} \
-m ${modulename} \
-j ${projectname}
9 changes: 9 additions & 0 deletions my.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
./app.js \
-C modelVersionInfoResponse,modelVersionInfo,nouse \
-P code,flag,message \
-f /Users/Evan/Desktop/index.html \
-a Evan \
-j HomeDoctor \
-d true \
--verbose

33 changes: 33 additions & 0 deletions scripts/2.文件上传.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash
author='Evan'
projectname='Homedoctor'
passkeys='code,flag,message'
fileuri='/Users/Evan/Desktop/index.html'
debug=true
verbose=false
modulename='taskFileUpload'
models=(
#文件上传
'modelFileUpload'
)

for model in ${models[@]}; do
types=${types}${model},
done
types=${types}

if [ "$debug" = true ] ; then
enableDebug='--debug'
fi

if [ "$verbose" = true ] ; then
enableVerbose='--verbose'
fi

./app.js ${enableVerbose} ${enableDebug} \
-C ${types} \
-P ${passkeys} \
-f ${fileuri} \
-a ${author} \
-m ${modulename} \
-j ${projectname}
9 changes: 9 additions & 0 deletions scripts/31_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
./app.js \
-C modelVersionInfoResponse,modelVersionInfo,nouse \
-P code,flag,message \
-f /Users/Evan/Desktop/index.html \
-a Evan \
-j HomeDoctor \
-d true \
-- verbose

0 comments on commit 1508621

Please sign in to comment.