This PR introduces a way to execute the migration scripts with options(flags)
# execute migration in the following way
python main.py [--items, -i] [--folders, -f] --file=path_to_csv_file
--items, -i = execute the migration scripts for the items (it creates vaults and items in the 1Password)
--folders, -f = execute the migration scripts for the folders (it creates vaults only)
--file = path to the lastpass export.csv file. If not specified, LastPass CLI will be used to get the export.csv (requires to enter credentials to login into lpass cli
Migration script files were renamed using snack_case to be able to import functions.
lastpass-vault-item-import.py -> vault_item_import.pylastpass-folder-migrate.py -> folder_migrate.py
Last pass has different csv formats if export from web ui or from lpass cli.
url,username,password,totp,extra,name,grouping,fav - from web ui
url,username,password,extra,name,grouping,fav - from cli
Such case is handled in this PR.
This PR introduces a way to execute the migration scripts with options(flags)
Migration script files were renamed using snack_case to be able to import functions.
lastpass-vault-item-import.py
->vault_item_import.py
lastpass-folder-migrate.py
->folder_migrate.py
Last pass has different csv formats if export from web ui or from lpass cli.
url,username,password,totp,extra,name,grouping,fav
- from web uiurl,username,password,extra,name,grouping,fav
- from cli Such case is handled in this PR.