Cgtool

Chart Geany command line tool
version 6.1.5


CGTOOL

NAME



cgtool - Chart Geany command line tool for data and module manipulation

SYNOPSIS



cgtool mode option [PARAMETER] [DBFILE]

DESCRIPTION



Manipulate data and modules using cgbase.dat. Cgbase.dat is the database file of ChartGeany. Display information about data tables and extract the data to psv (pipe separated values) file or stdout. Display information about modules, import, export, compile or decompile them.


SYNTAX OVERVIEW



Cgtool operates under the following modes: data, help, info and module. Each mode supports a set of options. Options may take their own set of parameters. The last optional argument is the full path of cgbase.dat. If omitted, the default path is used: $HOME/.config/ChartGeany/cgbase.dat.


MODES AND OPTIONS


mode:

options:







data

--export TABLEID
Exports the data of table with id equal to TABLEID to a psv file with .csv extension. Csv extension is used for compatibility with LibreOffice Calc.

--export-tostdout TABLEID
Exports the data of table with id equal to TABLEID to stdout.

--list
Lists the id, symbol, feed and name of the data tables.
 

mode:

options:

help

none
Displays a help screen for the syntax, the license and the copyright notice.


mode:

options:

info

--cgscript-toolchain TOOLCHAIN
Information about the compiler, the compiler flags and the linker flags.

--dbfile
Information about the supported CGScript version, the data feeds, the toolchains and the version of cgbase.dat.


mode:

options:

module

--compile FILE
Compiles the FILE with .cgs extension (source) and creates a FILE with .cgm extension (module).

--delete MODULEID
Deletes the module with id equal to MODULEID.

--decompile FILE
Decompiles the FILE with .cgm extension and creates a FILE with .cgs extension.

--export MODULEID
Exports the module with id equal to MODULE id to a .cgm file.

--import FILE
Imports the FILE with .cgm extension to cgbase.dat.

--list
Lists the module id, name, type, version and status of the modules in cgbase.dat.

--verbose-compile FILE
Same as --compile but more verbose.


AUTHOR



Written by Lucas Tsatiris

REPORTING BUGS



You may report bugs or request features by email to: chartgeany@gmail.com

COPYRIGHT



Copyright © 2020 Lucas Tsatiris.   License GPLv2+: GNU GPL  version  2  or  later:
http://www.gnu.org/licenses/gpl-2.0.html


Download
          Chart Geany