<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Kconfiglib.git/savedefconfig.py, branch v13.3.2</title>
<subtitle>Fork of https://github.com/zephyrproject-rtos/Kconfiglib.git</subtitle>
<id>https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v13.3.2</id>
<link rel='self' href='https://git.mcdonnell.dev/Kconfiglib.git/atom?h=v13.3.2'/>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/'/>
<updated>2019-06-03T04:50:06Z</updated>
<entry>
<title>Have load_config() and write_(min_)config() return messages</title>
<updated>2019-06-03T04:50:06Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-06-02T16:15:59Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=55bc8c380869ea663092212e8fe388ad7abae596'/>
<id>urn:sha1:55bc8c380869ea663092212e8fe388ad7abae596</id>
<content type='text'>
Hardcoding load_config() and write_(min_)config() to write any message
to stdout is awkward, because it means that the message can't be easily
reused when stdout is the wrong place to write it to (e.g. in
menuconfig/guiconfig). This gets extra bad now that there's also the "No
change to ..." message.

Modify load_config() and write_(min_)config() to return the message as a
string instead, and have them always return a message, instead of just
when 'filename' is None and verbose=True. This makes things flexible and
straightforward.

Use the new behavior in menuconfig.py and guiconfig.py. They now show
"No change to ..." when saving a file doesn't modify it.

Tools that want to write messages to stdout should now do
print(kconf.load_config()) / print(kconf.write_config()).

There's no clean way to preserve perfect backwards compatibility here,
but keep accepting the 'verbose' argument and print a deprecation
warning if a value is ever passed for it. That way, scripts will keep
running, though possibly with less output on stdout.

This changes the meaning of the load_config() return value as well,
though I suspect it was only ever used by the menuconfig/guiconfig
interfaces.

The new behavior applies for kconfiglib.VERSION &gt;= (12, 0, 0).
</content>
</entry>
<entry>
<title>savedefconfig: Fix typo in help</title>
<updated>2019-03-24T18:00:56Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-03-24T18:00:56Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=5bdec0ba25ee39dce109300809d9643d7d4306ba'/>
<id>urn:sha1:5bdec0ba25ee39dce109300809d9643d7d4306ba</id>
<content type='text'>
</content>
</entry>
<entry>
<title>savedefconfig: Have '--out MINIMAL_CONFIGURATION' instead of '--out OUT'</title>
<updated>2019-03-22T20:46:40Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-03-22T20:46:40Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=13f84c78da532c6ecbe47adf7ab1fe9225efc0c9'/>
<id>urn:sha1:13f84c78da532c6ecbe47adf7ab1fe9225efc0c9</id>
<content type='text'>
Small help text improvement.
</content>
</entry>
<entry>
<title>Whitespace consistency nit</title>
<updated>2019-03-22T19:43:30Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-03-22T19:43:21Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=5cec7cc7ecc78e8fe52c715c7465b0256392f428'/>
<id>urn:sha1:5cec7cc7ecc78e8fe52c715c7465b0256392f428</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Convert some comments to module docstrings in utilities</title>
<updated>2019-03-22T16:29:12Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-03-22T14:42:45Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=c70a45eb935dc536ce59ec860c17b4c1c531a663'/>
<id>urn:sha1:c70a45eb935dc536ce59ec860c17b4c1c531a663</id>
<content type='text'>
This makes running pydoc(3) on the utilities helpful.

Reuse the module docstring for the --help text for utilities that use
argparse.

Also fix some copy-paste errors in the all*config.py descriptions and
clean up the language a bit.

Piggyback removal of an optimization in allmodconfig.py that's pretty
irrelevant now.
</content>
</entry>
<entry>
<title>savedefconfig: Add script</title>
<updated>2019-03-20T17:29:18Z</updated>
<author>
<name>Ulf Magnusson</name>
<email>ulfalizer@gmail.com</email>
</author>
<published>2019-03-20T17:14:01Z</published>
<link rel='alternate' type='text/html' href='https://git.mcdonnell.dev/Kconfiglib.git/commit/?id=b7a1ea66d273a4594ee3644be52718310ee100f6'/>
<id>urn:sha1:b7a1ea66d273a4594ee3644be52718310ee100f6</id>
<content type='text'>
Minimal configuration files can already be generated from within the
menuconfig too, but having a script available can be handy for
scripting.
</content>
</entry>
</feed>
