The application will receive as input a commands file and execute them one by one in sequence.
-
Implement a list of basic commands where each command can have different parameters:
- File Copy
- Parameters: Source File, Destination File
- File Delete
- Parameters: File Path
- Query Folder Files
- Parameter: Folder Path
- Output: print to console list of all files in folders
- Create Folder
- Parameter: Folder Path , new Folder Name
- Download File
- Parameters: Source url, output File
- Wait
- Parameter: wait time in seconds
- Conditional Count Rows File:
- Parameter: source file, string to search in rows
- Output: Count of rows in the file that contain the search string
- File Copy
-
reading of the command file from a plain text file
- Execute a command to run a command file
- Implement reading of the script file as an XML file
- Allow the customer to build execute own commands (plugins / extensions)
- MyPipeline uses commands configuration inside App.config file in the section MyPipeline.commands
- MyPipeline has two command extenders (PipelineExecuter and FolderExecuter), which are loaded using reflections.
- Compile and run the MyPipeline application using following commands:
- MyPipeline -cmd copy file1.dat file2.dat
- MyPipeline -file commands_example.txt
- MyPipeline -file commands_example.xml