You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's introduce a new command patch: it'll update an existing remote resource without downloading the full spec file. It can accept patch file or patch statements. For patch command it automatically create spec in memory, update it using patch file or statements and modify remote resources according to these changes.
Patch file provides yaml representation of fields that should be updated, e.g. gitstrap patch -f repo.yml g4s8/gitstrap with repo.yml file's content:
spec:
description: "New repository description"
will change repository description of g4s8/gitstrap repo.
Patch statements can modify specs without editing file. Each statement should be valid YAML document, it should accept one-line documents. E.g. gitstrap patch -s 'spec: { visibility: private }' g4s8/gitstrap changes visibility of repository to private. Patch command can accept one or more statements at once, and one or more changes in one statement: e.g.
Let's introduce a new command
patch
: it'll update an existing remote resource without downloading the full spec file. It can accept patch file or patch statements. For patch command it automatically create spec in memory, update it using patch file or statements and modify remote resources according to these changes.Patch file provides yaml representation of fields that should be updated, e.g.
gitstrap patch -f repo.yml g4s8/gitstrap
withrepo.yml
file's content:will change repository description of g4s8/gitstrap repo.
Patch statements can modify specs without editing file. Each statement should be valid YAML document, it should accept one-line documents. E.g.
gitstrap patch -s 'spec: { visibility: private }' g4s8/gitstrap
changes visibility of repository to private. Patch command can accept one or more statements at once, and one or more changes in one statement: e.g.The text was updated successfully, but these errors were encountered: