Commit graph

13 commits

Author SHA1 Message Date
Heath Stewart
cf483770c9
Remove project JSON formatting objects (#8541) 2024-01-17 17:56:58 +00:00
Heath Stewart
0cf5d22ead
Support template, jq flags with standard format flag (#7832)
* Use standard JSON flags for project command

Deprecates the --format flag and adds the standard JSON flags to properly filter, template, and write JSON.

* Add format flags cmdutil

Resolves PR feedback

* Remove unnecessary fields from JSON format flags

* Add standard format help to remaining commands

* Add JSON format regression tests

Also fixed a number of `project` commands that didn't format the right object as JSON.

* Resolve PR feedback
2024-01-09 09:46:39 -08:00
Yukai Chou
17d336e005 Wrap cli flags in backticks uniformly 2023-11-16 22:54:27 +08:00
Andy Feller
c8b465269e
Bubble up return value from inner function calls in runEditItem 2023-10-02 11:42:34 -07:00
Arun
45e4bf7fc0
Split clearing item, updating draft item and updating item values into individual functions for better readability; refactor field ID and project ID presence check into a separate function 2023-09-29 12:15:35 -07:00
Arun
eebef99b1c
Document clear flag in long form help as well 2023-09-29 11:56:19 -07:00
Arun
9d81ca0e44
Add clear flag usage example 2023-09-29 11:54:26 -07:00
Arun
6f6e179c49
Move field value flag and clear flag exclusivity one level higher up to RunE 2023-09-29 11:54:14 -07:00
Arun
31fd8dfc45
Tests for the new clear flag 2023-09-19 19:57:25 -07:00
Arun
dde84c27a3
Driveby unrelated update: when both field ID and project ID are missing, specify that it's necessary to update the field value 2023-09-19 19:04:43 -07:00
Arun
55b41d8fa6
Introduce clear flag on 'project item-edit' command to remove field value 2023-09-19 19:03:57 -07:00
John Keech
93e1511bae
Codespaces: Use the host name from the logged in server for commands (#7795)
* Use the host name from the logged in server for codespace commands

* Fix existing tests

* Add tests for server url configuration

* Rename defaultApiUrl to defaultAPIURL and comment cleanup

* Switch to t.Setenv in codespaces api tests

* Switch to t.Setenv in other tests

* Support custom server in web flows for list and create

* Rename GetServerURL() to ServerURL()
2023-08-08 09:32:06 -07:00
Ariel Deitcher
ad4a489f8d
Introduce gh project commands (#7375)
Co-authored-by: Mislav Marohnić <mislav@github.com>
2023-06-09 16:57:01 +00:00