Skip to content

paolodina/rocketry-django-usecase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README.md

What I need

Regular command fake run.

$ python manage.py importer
fake run

Scheduled command fake run.

$ python manage.py importer --scheduled
fake run
fake run
fake run
...etc...

Regular command real run.

$ python manage.py importer --real-run
real run

Scheduled command real run.

$ python manage.py importer --real-run --scheduled
real run
real run
real run
...etc...

How I did

https://github.com/paolodina/rocketry-django-usecase/tree/main/usecase/management/commands

Currently I'm "pinning" args and options using global variables, which looks ugly (because we are not used to see something like that often?), but it works.

I just wondered it there was a better way (possibily provided by Rocketry) to do this!

GitHub refs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages