babs sync-code: Save and push code changes

Command-Line Arguments

Save and push code changes to input dataset.

usage: babs sync-code [-h] [-m MESSAGE] [project_root]

Positional Arguments

project_root

Absolute path to the root of BABS project. For example, '/path/to/my_BABS_project/' (default is current working directory).

Named Arguments

-m, --message

Commit message for datalad save

Examples

  1. Basic usage with default options:

    babs sync-code
    
  2. Specify a custom project root and commit message:

    babs sync-code /path/to/my_babs_project -m "Updated singularity run command"
    

Notes

  • This command must be run from within a valid BABS project

  • Changes are saved and pushed from the analysis/code directory only

  • The command will fail if the analysis/code directory does not exist

  • Job status and submission files are automatically excluded from being saved