Bug 653

Summary: Native: import-command
Product: Varia Reporter: Werner Van Belle <werner>
Component: SchemeAssignee: Werner Van Belle <werner>
Status: ASSIGNED ---    
Severity: normal    
Priority: P1    
Version: unspecified   
Hardware: PC   
OS: Linux   

Description Werner Van Belle 2008-12-26 11:56:19 CET


---- Reported by werner@yellowcouch.org 2007-11-07 13:49:36 ----

Should import a specific command (see the commandclass stuff), when called, the command should be instantiated, the arguments passed along by writing the entire structure to a set of files on disk. 
Of course the command has no idea which arguments it can expect so we will need to convert the arguments to something sensible.
Standard numbers are passed along as numebrs, strings as well, files are passed along as filenames after they are copied to the target directory, tables are passed along as csv files (ater we write them to the disc). The output of the command should be placed in the output directory and the root of the. We could of course also pass along the scheme expressions as a function to be called. 

In that case the interpreter would be scheme and the arguments passed as a file containing the function to be executed. Then the surrounding command would be something like

(read arguments)

- instantiate the command
- write all the arguments as a list to a file. The problem here is that we would like to refer to other expressions which are in a shared memory somewhere.

Let us first start by dumping an expression to the input and requiring the expression to come back. The interpreter must then create the trables, execute the command and



--- Bug imported by werner@yellowcouch.org 2008-12-26 11:56  ---

This bug was previously known as _bug_ 156 at http://werner.yellowcouch.org/borgflowbugs/﷒0