This is a command-line app that deletes a single folder migrations or all directory migrations folder
Project description
delete-migrations
The delete-migrations is a command-line app that deletes a single folder migrations or all directory migrations folder.
Installation
Create a virtual environment in root folder
for mac, linux os
$ virtualenv <virtualenv_name> #create a virtual environment
$ source <virtualenv_name>/bin/activate #activate the virtual environment
for windows os
$ virtualenv <virtualenv_name> #create a virtual environment
$ <virtualenv_name>\Scripts\activate #activate the virtual environment
Using Pip
$ pip install delete-migrations #install the delete-migrations package
Accessing the package on command line
- create a file "find.py" on the root directory of your project
- import the delete-migrations command-line app in the "find.py" file from the module below
from delete_migration_roosevelt import management
- save the "find.py"
Usage
find usage commands
$ python find.py #for mac, linux
$ py find.py #for windows
get help
using the help command
$ python find.py --help #for mac, linux
$ py find.py --help #for windows
using the help command abbreviated
$ python find.py -h #for mac, linux
$ py find.py -h #for windows
using the <all> directory help command
$ python find.py all -h #for mac, linux
$ py find.py all -h #for windows
using the "<dir_name" directory help command
$ python find.py dir_name -h #for mac, linux
$ py find.py dir_name -h #for windows
all migrations folders
search and delete folders migrations
$ python find.py --delete all #for mac, linux
$ py find.py --delete all #for windows
search and delete folders migrations abbreviated
$ python find.py -d all #for mac, linux
$ py find.py -d all #for windows
all single folder
search and delete single folder migrations
$ python find.py --delete <name-of-folder> #for mac, linux
$ py find.py --delete <name-of-folder> #for windows
search and delete single folder migrations abbreviated
$ python find.py -d <name-of-folder> #for mac, linux
$ py find.py -d <name-of-folder> #for windows
all single folder
get the current version of the command-line library
$ python find.py --version #for mac, linux
$ py find.py --version #for windows
get the current version of the command-line library abbreviated
$ python find.py -v #for mac, linux
$ py find.py -v #for windows
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file delete-migrations-1.0.2.tar.gz.
File metadata
- Download URL: delete-migrations-1.0.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b717415d640f01e5f8c236f8bfb4729333fffccdbde5bf55c286c4197acedd8c
|
|
| MD5 |
92e63407706d0b64091395271b1b977a
|
|
| BLAKE2b-256 |
1ea0bd9f4532c550d5ebdaaaaf928d87d2f7edfdb59887bebd182d2857c32e33
|
File details
Details for the file delete_migrations-1.0.2-py3-none-any.whl.
File metadata
- Download URL: delete_migrations-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
459b78ff4368fc16e73f6829f333b1ecde9d574cd02260909e5ebb8a34b4c041
|
|
| MD5 |
fed68b93e7d79af75ce201287f8c0d07
|
|
| BLAKE2b-256 |
761cae9091f0d9f165a07d2baf480144e9a0e38a41d4b25f677dfbfa7d7a61f0
|