[infinispan-issues] [JBoss JIRA] (ISPN-11725) CLI: Allow encoding to be set in the context

Ryan Emerson (Jira) issues at jboss.org
Mon Apr 27 12:01:02 EDT 2020


Ryan Emerson created ISPN-11725:
-----------------------------------

             Summary: CLI: Allow encoding to be set in the context
                 Key: ISPN-11725
                 URL: https://issues.redhat.com/browse/ISPN-11725
             Project: Infinispan
          Issue Type: Enhancement
          Components: CLI
    Affects Versions: 11.0.0.Dev04
            Reporter: Ryan Emerson
            Assignee: Ryan Emerson


Currently in the CLI it's necessary to set encoding per entry. It should be able to set the encoding per the context of the currently selected cache to reduce verbosity in batch files. For example:

{code}
cd cache/example
cache put --key-encoding=application/json --value-encoding=application/json --file=example1.json "example1"
cache put --key-encoding=application/json --value-encoding=application/json --file=example2.json "example2"
{code}

Can be simplified to:
{code}
cd cache/example
set options --key-encoding=application/json --value-encoding=application/json
cache put --file=example1.json "example1"
cache put --file=example2.json "example2"
{code}






--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list