Skip to content

Latest commit

 

History

History
57 lines (45 loc) · 2.07 KB

README.md

File metadata and controls

57 lines (45 loc) · 2.07 KB

FastReport Cloud console shell

This is a simple console shell to FastReport Cloud service.

Prerequests GNU packages for build shell:

  • curl-development
  • gnutls-development
  • readline-development

Theses packages provide libraries and headers for building cloud console. Name of packages may vary depends on your distro. Debian example:

apt-get install libcurl4-gnutls-dev
apt-get install gnutls-dev

Cloud shell source code includes some parts of https://github.com/zserge/jsmn.git

Build:

type make in project directory for build executable
type strip frcloud for reducing binary size

Running

type ./frcoud for run console

If the token file not found then program will ask for token. Provide correct token and it will be stored to a configuration file. Utility can work in interactive and batch modes. By default it operates in interactive mode. But it also can receive commands from a pipe. Here is some example:

echo -e "ls\n profile\n pwd" | ./fr_cloud

This snippet will execute three commands - list current directory, show active profile, and show current folder's path.

List of supported commands

 help          shows list of supported commands or command description
 prepare       prepare report by it's UUID
 ls            show directory context
 search        show directory context by mask
 cd            change current directory by it's UUID
 get           download template, report or document by it's UUID
 put           upload template, report or document to cloud
 pwd           print working directory path
 exit          exit from FRCloud console. You may also use Ctrl+d
 templates     switch to templates domain
 reports       switch to reports domain
 exports       switch to exports domain
 lls           list of local directory
 rm            delete file by it's UUID
 rmdir         delete non-empty folder by it's UUID
 verbose       toggle curl verbose mode ON/OFF
 profile       show user profile