cmd.sync_git
cmd.sync_git¤
get_dataherb(source)
¤
get dataherb.json from source
Parameters:
Name | Type | Description | Default |
---|---|---|---|
source |
Path
|
local folder |
required |
Source code in dataherb/cmd/sync_git.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|
is_git_repo(path)
¤
checks if path is a git repo
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path |
Path
|
path to check |
required |
Source code in dataherb/cmd/sync_git.py
11 12 13 14 15 16 17 18 19 20 21 |
|
remote_git_repo(metadata_url)
¤
parse a remote git repo url
Parameters:
Name | Type | Description | Default |
---|---|---|---|
metadata_url |
str
|
remote url to metadata file |
required |
Source code in dataherb/cmd/sync_git.py
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 |
|
upload_dataset_to_git(source, target, experimental=False)
¤
uploads local folder to remote
Parameters:
Name | Type | Description | Default |
---|---|---|---|
source |
Path
|
local folder |
required |
target |
str
|
remote url |
required |
experimental |
bool
|
experimental flag |
False
|
Source code in dataherb/cmd/sync_git.py
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
|