great-river-11779
06/30/2023, 12:25 AMhigh-yak-85899
06/30/2023, 12:27 AMgreat-river-11779
06/30/2023, 12:42 AMcurved-television-6568
06/30/2023, 2:20 AM[cli.alias]
On mobile now, can provide example and link to docs tomorrow if desired ;)happy-kitchen-89482
06/30/2023, 3:09 AMmigrate
- are these django projects?great-river-11779
06/30/2023, 7:49 AMbroad-processor-92400
06/30/2023, 11:41 AMcli.alias
like foo_database = “run path/to/migrations/wrapper.py”
which we use like pants foo_database -- upgrade
.
For your situation, that might be an option, although others might be:
• continuing to use make as a command runner, but have it basically just invoke pants commands (preferably just temporarily, but would at least relieve the acute pain?)
• setting up aliases for commands as discussed above, and project paths, eg I suspect an alias like projectA = “src/python/projectA::”
would allow pants lint projectA
to do the right thing (lint everything in that directory and it’s descendants)
• Write a plug-in/backend, which is more of a commitmentcurved-television-6568
06/30/2023, 3:23 PMgreat-river-11779
06/30/2023, 9:13 PMbroad-processor-92400
06/30/2023, 9:16 PMfrom common import migration_wrapper
migration_wrapper.main(“projectA”)
great-river-11779
06/30/2023, 9:17 PM