You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When developing custom commands, it is very likely that you would have to repeat some code and share it with other commands.
To do show, it will be nice to alllow importing code from other files (other custom commands) as python modules. This is not possible currently, as you can see here: conan-io/conan-extensions#45
So, as example, the expected feature would be:
cmd_build_info.py
...
from cmd_server import read_servers
@conan_subcommand()
def property_set(conan_api: ConanAPI, parser, subparser, *args):
"""
Set properties for artifacts under a Conan reference recursively.
"""
servers = read_servers()
....
Have you read the CONTRIBUTING guide?
I've read the CONTRIBUTING guide
The text was updated successfully, but these errors were encountered:
What is your suggestion?
When developing custom commands, it is very likely that you would have to repeat some code and share it with other commands.
To do show, it will be nice to alllow importing code from other files (other custom commands) as python modules. This is not possible currently, as you can see here: conan-io/conan-extensions#45
So, as example, the expected feature would be:
cmd_build_info.py
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: