0 purchases
dependency scanner
dependency_scanner #
Dart Dependency Scanner: scans workspace directory for Dart projects and runs batch commands over them.
Commands #
pub_get #
pub get in all workspace dart projects:
$> depscan /path/to/your/workspace_dir pub_get all
copied to clipboard
pub get in specific projects
$> depscan /path/to/your/workspace_dir pub_get projects1 projects2 extra_project
copied to clipboard
list #
List all projects in workspace
$> depscan /path/to/your/workspace_dir list
copied to clipboard
upgrade_dependency #
Upgrade a specific dependency in all projects
$> depscan /path/to/your/workspace_dir upgrade_dependency swiss_knife
copied to clipboard
All projects with the dependency swiss_knife where upgraded to the last published version.
Upgrade a specific dependency to a specific version in all projects
$> depscan /path/to/your/workspace_dir upgrade_dependency swiss_knife:2.3.7
copied to clipboard
All projects with the dependency swiss_knife where upgraded to version 2.3.7
local_path #
Change a specific dependency to local workspace path:
$> depscan /path/to/your/workspace_dir local_path swiss_knife
copied to clipboard
All projects with the dependency swiss_knife where referencing to '../swiss_knife' (if found in the same workspace).
Change all dependencies to local workspace path:
$> depscan /path/to/your/workspace_dir local_path all
copied to clipboard
All projects with any dependency also present in the workspace will point to a local path.
rollback_local_path #
Rollback a specific local dependency to local hosted version:
$> depscan /path/to/your/workspace_dir rollback_local_path swiss_knife
copied to clipboard
All projects with local dependency swiss_knife will point to commented hosted version.
Rollback all local dependencies to commented hosted versions:
$> depscan /path/to/your/workspace_dir rollback_local_path all
copied to clipboard
All projects with any local dependency project will reference to hosted versions (using commented versions by 'local_path' command).
Git #
Only projects with git will be changed as a safety measure. Git allows rollback of any change and control history of your files.
Common usage #
Upgrade and resolve a dependency in all your projects:
$> depscan /path/to/your/workspace_dir upgrade_dependency swiss_knife
$> depscan /path/to/your/workspace_dir pub_get all
copied to clipboard
Point dependencies to your local workspace projects:
$> depscan /path/to/your/workspace_dir local_path all
$> depscan /path/to/your/workspace_dir pub_get all
copied to clipboard
Rollback local dependencies to hosted versions:
$> depscan /path/to/your/workspace_dir rollback_local_path all
$> depscan /path/to/your/workspace_dir pub_get all
copied to clipboard
Features and bugs #
Please file feature requests and bugs at the issue tracker.
Author #
Graciliano M. Passos: gmpassos@GitHub.
License #
Dart free & open-source license.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.