[GRASS-git] [OSGeo/grass] 760d76: r.colors.out: Add JSON support (#4555)

Nishant Bansal noreply at github.com
Tue Nov 5 15:35:59 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 760d763d9ee991a43d9ed34e1a37d15a5bf3f19b
      https://github.com/OSGeo/grass/commit/760d763d9ee991a43d9ed34e1a37d15a5bf3f19b
  Author: Nishant Bansal <103022832+NishantBansal2003 at users.noreply.github.com>
  Date:   2024-11-05 (Tue, 05 Nov 2024)

  Changed paths:
    M general/g.parser/standard_option.c
    M include/grass/gis.h
    M lib/gis/parser_standard_options.c
    M raster/r.colors.out/Makefile
    A raster/r.colors.out/local_proto.h
    A raster/r.colors.out/prt_json.c
    M raster/r.colors.out/r.colors.out.html
    M raster/r.colors.out/r3.colors.out.html
    M raster/r.colors.out/raster3d_main.c
    M raster/r.colors.out/raster_main.c
    A raster/r.colors.out/tests/conftest.py
    A raster/r.colors.out/tests/r3_colors_out_test.py
    A raster/r.colors.out/tests/r_colors_out_test.py

  Log Message:
  -----------
  r.colors.out: Add JSON support (#4555)

* r.colors.out: added json output

Signed-off-by: Nishant Bansal <nishant.bansal.282003 at gmail.com>

* fixed CI build issues

Signed-off-by: Nishant Bansal <nishant.bansal.282003 at gmail.com>

* refactor code

Signed-off-by: Nishant Bansal <nishant.bansal.282003 at gmail.com>

* added more color formats and tests

Signed-off-by: Nishant Bansal <nishant.bansal.282003 at gmail.com>

* additional changes based on review

Signed-off-by: Nishant Bansal <nishant.bansal.282003 at gmail.com>

* fixes prototype declaration

Signed-off-by: Nishant Bansal <nishant.bansal.282003 at gmail.com>

* fixes test

Signed-off-by: Nishant Bansal <nishant.bansal.282003 at gmail.com>

* added option instead of flags

Signed-off-by: Nishant Bansal <nishant.bansal.282003 at gmail.com>

* Add a standard parser option for color formatting

Signed-off-by: Nishant Bansal <nishant.bansal.282003 at gmail.com>

* added changes based on review

Signed-off-by: Nishant Bansal <nishant.bansal.282003 at gmail.com>

* fixes function name

Signed-off-by: Nishant Bansal <nishant.bansal.282003 at gmail.com>

* fixes pytest failure

Signed-off-by: Nishant Bansal <nishant.bansal.282003 at gmail.com>

* Update lib/gis/parser_standard_options.c

---------

Signed-off-by: Nishant Bansal <nishant.bansal.282003 at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications


More information about the grass-commit mailing list