File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ All notable changes to `src-cli` are documented in this file.
1919
2020### Fixed
2121
22+ - ` src config ` now works correctly when provided a subject.
23+
2224### Removed
2325
2426## 3.23.1
Original file line number Diff line number Diff line change @@ -158,7 +158,9 @@ query SettingsSubjectLatestSettingsID($subject: ID!) {
158158 }
159159 }
160160
161- if _ , err := client .NewQuery (query ).Do (ctx , & result ); err != nil {
161+ if _ , err := client .NewRequest (query , map [string ]interface {}{
162+ "subject" : subjectID ,
163+ }).Do (ctx , & result ); err != nil {
162164 return nil , err
163165 }
164166
Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ Examples:
3434
3535 $ src config edit -subject=$(src orgs get -f '{{.ID}}' -name=abc-org) -overwrite -value '{"motd":["Hello!"]}'
3636
37+ Change global settings:
38+
39+ $ src config edit -subject=$(echo 'query { site { id } }' | src api | jq .data.site.id --raw-output)
3740`
3841
3942 flagSet := flag .NewFlagSet ("edit" , flag .ExitOnError )
You can’t perform that action at this time.
0 commit comments