-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path-ticket.bat
More file actions
21 lines (21 loc) · 797 Bytes
/
-ticket.bat
File metadata and controls
21 lines (21 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@echo off
::setlocal enabledelayedexpansion
::setlocal enableextensions
::set /p "PARAM=test2:"
set CONTENT=%~1
::echo %CONTENT%
set /p VERSION= < VERSION.txt
IF "%CONTENT%" == "" set CONTENT=New Version of System v%VERSION%
echo %CONTENT% >> "Ticket\v%VERSION%.md"
::echo %CONTENT%
::node -pe "require('./package.json').version" > VERSION.txt &&
::npm version patch > VERSION.txt && set /p VERSION= < VERSION.txt && echo %CONTENT% > "Ticket\v%VERSION%.md"
::set DEFAULT=domyslny
:: echo %VERSION% &&
::pause
::endlocal
:: && echo This is a sample text file > "Ticket\%VERSION%.md"
::set VERSION="$(npm view js-func-github version)"
::for /f %%i in ('dir /b /od Ticket\*.md') do @set filename=%%i
::set /p ticket=<Ticket\%filename%
::for /f "delims==" %%a in (Ticket\%filename%) do set ticket=%%a