Skip to content

Commit 2152571

Browse files
committed
TODO + new command file example
1 parent c1b7cb9 commit 2152571

2 files changed

Lines changed: 48 additions & 18 deletions

File tree

command-files/gen-golang.telosys

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
// HOME is supposed to be set when starting with '-h' option
3+
pwd
4+
h
5+
6+
// Init Telosys environment
7+
init
8+
ls TelosysTools
9+
10+
// Change GitHub store
11+
gh telosys-tools-beta
12+
// Print GitHub store
13+
gh
14+
15+
// Install all 'golang' bundles from GitHub store
16+
ib golang
17+
// List installed bundles
18+
lb
19+
// Choose current bundle
20+
b golang-web-rest
21+
22+
// Choose current model
23+
m cars
24+
25+
// Check project configuration before code generation
26+
// TODO : cfg SRC=src
27+
28+
// Generate the code
29+
gen * * -r -y
30+

doc/TODO.txt

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,35 @@
11

2-
TODO in core ( for EditTemplateCommand )
2+
NEW COMMANDS (useful for command files) :
3+
4+
'cfg' : print configuration ( telosys-tools.cfg )
5+
'cfg SRC=xxx' : set a variable value
6+
7+
'mkdir xxxx' : create directory
8+
9+
'im' : Install model from GitHub (like 'ib' for bundles)
10+
( + 'im -l' : install model locally )
11+
12+
13+
Telosys CORE improvement ( for EditTemplateCommand )
314
TelosysProject .getBundleDirectory(bundle_name)
415
TelosysProject .buildTemplateFile(bundle_name)
516

617

718
COMMANDS ENHANCEMENT :
8-
"cm" command : add warning if no ID in one or more entity
19+
20+
'ib -l' : Install Bundle Locally (if download done manually)
21+
22+
'cm' : add warning if no ID in one or more entity
923
Message : "warning N entity(ies) without ID
1024

11-
'ib -l' : Install Bundle Locally (download manually)
1225

1326

1427
NEW COMMANDS ( IN THE FUTURE ):
1528

16-
'cfg' : print configuration ( telosys-tools.cfg )
17-
'var' (or 'lv' ?) : print variables
29+
'var' (or 'lv' ?) : print variables ??? ( 'cfg' enough ? )
1830

1931
'vf' / 'cat' : View File
2032
'lst' : LS TelosysTools
21-
'mkdir '
2233

2334
'sql' : to run sql scripts
2435
eg : "sql myscript.sql" ( or "sql 2 myscript.sql" for database #2 )
@@ -27,8 +38,7 @@ NEW COMMANDS ( IN THE FUTURE ):
2738

2839

2940

30-
DB MODEL COMMANDS : (NB : "db" is for "Delete Bundle" )
31-
41+
DB MODEL COMMANDS :
3242

3343
(X) udbm : update db model ( ou "udbmodel" )
3444
(X) udbm
@@ -37,13 +47,3 @@ DB MODEL COMMANDS : (NB : "db" is for "Delete Bundle" )
3747

3848
Check file existence in CLI ( ndbm and udbm )
3949

40-
Confirm for "ndbm" and "udbm"
41-
42-
43-
44-
LAUNCHERS COMMANDS :
45-
'nl' : new launcher
46-
'll' : list launchers
47-
'el' : edit launchers
48-
'launch'/'run' : launch a launcher or 'gen < launcher-name'
49-

0 commit comments

Comments
 (0)