Closed salim-b closed 2 years ago
Thanks! Those functions are indeed out of scope here. No doubt that they are useful, but we want to keep gh minimal and un-opinionated.
We could potentially include them in the documentation as examples, but even that has a non-trivial amount of maintenance burden.
Ok, understood. It was worth a try. 😄
Some time ago I've written three (two of them non-trivial) functions based on
gh::gh_gql()
:gh_dir_ls
gh_text_file()
gh_text_files()
(convenience wrapper combining the first two functions)Currently they live in my pal package. It's not on CRAN, the development version can be installed via
remotes::install_gitlab("salim_b/r/pkgs/pal")
. Sources are found here.In this comment I sense reservations against the introduction of higher-level functions in gh. Still, I think those functions could be useful for a broader audience, so I'd like to ask whether you're open for a pull request to directly include them in gh.