parsec-cloud icon indicating copy to clipboard operation
parsec-cloud copied to clipboard

Parsec sequestre dump

Open TimeEngineer opened this issue 3 years ago • 4 comments

Rename of #2363

TimeEngineer avatar May 27 '22 14:05 TimeEngineer

For the tests, you'd better use the following pattern: 1 - init an empty sqlite db 2 - have a SQL command with plenty of INSERT inlined in your test that you run to put data in your db 3 - run you export command with a temporary folder as output 4 - check the output folder has the expect hierarchy and file contents

This avoid having to implement serialization code (only needed to do the step 2) and make you tests more realistic since you use the db format as a clear separation in your tests

touilleMan avatar Jun 02 '22 14:06 touilleMan

Waiting Storage's PR for some improvements:

  • tmp_path

TimeEngineer avatar Jun 07 '22 13:06 TimeEngineer

The CLI is missing help message

You are rude :(, we already have

parsec_sequestre_dump 0.0.0
Simple program that dumps files and folders in a workspace

USAGE:
    parsec_sequestre_dump --input <INPUT> --key <KEY> --output <OUTPUT>

OPTIONS:
    -h, --help               Print help information
    -i, --input <INPUT>      Sqlite input file (e.g `my/workspace_export.sqlite`)
    -k, --key <KEY>          Secret key (e.g `my/keyfile.key`)
    -o, --output <OUTPUT>    Output directory (e.g `./output`)
    -V, --version            Print version information

TimeEngineer avatar Jun 10 '22 12:06 TimeEngineer

You are rude :(, we already have

I've just learn something.

that clap now handle doc-comment

FirelightFlagboy avatar Jun 10 '22 13:06 FirelightFlagboy