You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/06/06 18:22:18 UTC

[jira] [Commented] (MYNEWT-640) Add an newt target "amend" feature to amend or delete target variable values

    [ https://issues.apache.org/jira/browse/MYNEWT-640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16039396#comment-16039396 ] 

ASF subversion and git services commented on MYNEWT-640:
--------------------------------------------------------

Commit b37d8bf275159d2c959cc55d8179328f40d28dec in incubator-mynewt-newt's branch refs/heads/master from [~cwanda]
[ https://gitbox.apache.org/repos/asf?p=incubator-mynewt-newt.git;h=b37d8bf ]

MYNEWT-640 Added newt target amend command.

The newt target amend command allows the user to add, change, delete values
for multi-value target variables without overwriting existing values.  This
addresses the concern raised in MYNEWT-543.

The amend command uses the same format as newt target set.  The variables that can have values appended are: syscfg, cflags, aflags, and lfags. It supports a -d flag to delete values.


> Add an newt target "amend"  feature to amend or delete target variable values
> -----------------------------------------------------------------------------
>
>                 Key: MYNEWT-640
>                 URL: https://issues.apache.org/jira/browse/MYNEWT-640
>             Project: Mynewt
>          Issue Type: Improvement
>      Security Level: Public(Viewable by anyone) 
>    Affects Versions: v1_0_0_beta2
>            Reporter: Wanda Chiu
>            Assignee: Wanda Chiu
>            Priority: Minor
>             Fix For: v1_1_0_rel
>
>
> This is a feature enhancement request (for post 1.0) to support an "append" feature that allows a user to change or append to current target variable values:
> The *newt target <target-name> set* sets a variable value with the value specified in the command. It overrides the variable's previous values.  For example, the eventq_nordic target has the follow syscfg.yml content:
> {code}
> ### Package: targets/eventq_nordic
> syscfg.vals:
>     CONFIG_NEWTMGR: 1
>     LOG_NEWTMGR: 1
>     SHELL_TASK: 1
> {code}
> Run *newt target set eventq_nordic syscfg=LOG_NEWTMGR=0* and the syscfg.yml file changes to:
> {code}
> ### Package: targets/eventq_nordic
> syscfg.vals:
>     LOG_NEWTMGR: 0
> {code}
> Currently users can't  append or change specific values for a variable and without overriding all values.  This support would be useful for target variables other than the *syscfg* variable, e.g *cflags*, *lflags*, etc
> (See MYNEWT-543)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)