tool: add command line tool for managing system-info 12/261712/5 accepted/tizen/unified/20210728.090615 submit/tizen/20210726.084601
authorYoungjae Cho <y0.cho@samsung.com>
Fri, 23 Jul 2021 06:06:46 +0000 (15:06 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Mon, 26 Jul 2021 06:37:37 +0000 (15:37 +0900)
commitc19a8e89e66754c09f6bf90c51d5d49c249f5a25
treeaa5278b8ed5d68385e64af052b78d9888ff53d93
parent778d145aa8ad116346fd3439e25722aee7112cae
tool: add command line tool for managing system-info

USAGE
  system-into-tool [OPTION]

OPTION
  -l|--list-all                  List all system-info database entries
  -g|--get KEY [-v|--verbose]    Get value of feature KEY
                                 If -v option is given, shows result in detail
                                 ex) system-info-tool -g tizen.org/feature/display
                                     system-info-tool -g tizen.org/system/manufacturer -v
  -s|--set KEY TYPE VALUE        Add or update user-defined KEY
                                 Available TYPE: bool, int, double, string
                                 ex) system-info-tool -a tizen.org/feature/display bool 1
                                     system-info-tool -a tizen.org/system/manufacturer string Tizen
  -c|--clear KEY                 Clear user-defined KEY. This cannot clear read-only system key
  -C|--clear-all                 Clear all user-defined keys
  -h|--help                      Show this help

Change-Id: Id2f72ee242e12d90edc82797a21fdb8b097e2bc6
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
CMakeLists.txt
include/system_info_private.h
include/system_info_type.h
packaging/capi-system-info.spec
tool/CMakeLists.txt [new file with mode: 0755]
tool/system-info-tool-get.c [new file with mode: 0644]
tool/system-info-tool-get.h [new file with mode: 0644]
tool/system-info-tool-set.c [new file with mode: 0644]
tool/system-info-tool-set.h [new file with mode: 0644]
tool/system-info-tool.c [new file with mode: 0644]
tool/system-info-tool.h [new file with mode: 0644]