()
| 153 | |
| 154 | |
| 155 | def main() -> None: |
| 156 | parser = argparse.ArgumentParser( |
| 157 | formatter_class=argparse.ArgumentDefaultsHelpFormatter |
| 158 | ) |
| 159 | subparsers = parser.add_subparsers(dest="subcommand", required=True) |
| 160 | |
| 161 | subparsers.add_parser( |
| 162 | "clone", |
| 163 | help="clones pydevd for the first time", |
| 164 | formatter_class=argparse.ArgumentDefaultsHelpFormatter, |
| 165 | ) |
| 166 | subparsers.add_parser( |
| 167 | "reclone", |
| 168 | help="force reclones pydevd", |
| 169 | formatter_class=argparse.ArgumentDefaultsHelpFormatter, |
| 170 | ) |
| 171 | subparsers.add_parser( |
| 172 | "pull", |
| 173 | help="pulls pydevd", |
| 174 | formatter_class=argparse.ArgumentDefaultsHelpFormatter, |
| 175 | ) |
| 176 | |
| 177 | branch_parser = subparsers.add_parser( |
| 178 | "branch", |
| 179 | help="squashes changes to pydevd", |
| 180 | formatter_class=argparse.ArgumentDefaultsHelpFormatter, |
| 181 | ) |
| 182 | branch_parser.add_argument( |
| 183 | "-m", |
| 184 | "--message", |
| 185 | dest="message", |
| 186 | required=True, |
| 187 | help="message for the squashed commit", |
| 188 | ) |
| 189 | |
| 190 | ptf_parser = subparsers.add_parser( |
| 191 | "push-to-fork", |
| 192 | help="pushes the squashed changes to pydevd", |
| 193 | formatter_class=argparse.ArgumentDefaultsHelpFormatter, |
| 194 | ) |
| 195 | ptf_parser.add_argument( |
| 196 | "--fork-remote", |
| 197 | dest="fork_remote", |
| 198 | default="pydevd-fork", |
| 199 | help="pydevd remote", |
| 200 | ) |
| 201 | ptf_parser.add_argument( |
| 202 | "--fork-branch", |
| 203 | dest="fork_branch", |
| 204 | required=True, |
| 205 | help="branch to push to on the remote", |
| 206 | ) |
| 207 | |
| 208 | subparsers.add_parser( |
| 209 | "commit", |
| 210 | help=f"runs 'git subrepo commit {_SUBREPO_NAME}'", |
| 211 | formatter_class=argparse.ArgumentDefaultsHelpFormatter, |
| 212 | ) |
no test coverage detected
searching dependent graphs…