jorisjh
September 1, 2017, 4:06pm
1
When using pio lib install I expected the tool to add the library to the dependencies list in the ini file. Or make it optional by adding a --save flag like npm. Or am I missing something?
The feature has not been implemented yet. See commented code
@click.option(
"-e",
"--environment",
multiple=True,
help=(
"Manage libraries for the specific project build environments "
"declared in `platformio.ini`"
),
)
@click.pass_context
def cli(ctx, **options):
in_silence = PlatformioCLI.in_silence()
storage_cmds = ("install", "uninstall", "update", "list")
# skip commands that don't need storage folder
if ctx.invoked_subcommand not in storage_cmds or (
len(ctx.args) == 2 and ctx.args[1] in ("-h", "--help")
):
return
storage_dirs = list(options["storage_dir"])
if options["global"]:
storage_dirs.append(get_project_global_lib_dir())
Could you file a feature request here Issues · platformio/platformio-core · GitHub ? Maybe, we will implement it in the next release.
jorisjh
September 2, 2017, 8:29am
3