MCPcopy Create free account

hub / github.com/conaticus/click / functions

Functions37 in github.com/conaticus/click

↓ 1 callersMethodexecute
(&self)
src/commands/install.rs:66
↓ 1 callersMethodexists
Checks if a package with a valid version matching with `semantic_version` is already in the cache and returns `true` if so, `false` if otherwise, as w
src/cache.rs:79
↓ 1 callersFunctionextract_tarball
(bytes: Bytes, dest: String)
src/util.rs:16
↓ 1 callersFunctionhandle_args
(mut args: Args)
src/commands/command_handler.rs:17
↓ 1 callersMethodparse
(&mut self, args: &mut Args)
src/commands/install.rs:53
Methodadd_blocking
(f: F)
src/util.rs:46
Methodadd_task
(future: T)
src/util.rs:32
Methodalready_resolved
NOTE(conaticus): To save storage space, it might be an idea to check if the semantic version matches, rather than installing an whole new version, how
src/installer.rs:62
Methodappend_version
Append a version to a specific parent version, this hashmap will be used to generate package lock files.
src/installer.rs:84
Methodblock_until_done
()
src/util.rs:60
Methodcreate_modules_dir
Creates the node modules folder if it is not present.
src/installer.rs:196
Methoddecrement_tasks
()
src/util.rs:70
Methodget_bytes
Download a file from any specified URL.
src/http.rs:13
Methodget_cached_versions
Returns a hashmap, each key is formatted as package@version and the value is a boolean of whether the package is the latest version or not.
src/cache.rs:41
Methodget_latest_version_in_cache
Checks if the latest version exists in the cache. This is checked by reading if the package lock has the latest property as true.
src/cache.rs:134
Methodget_version_data
Gets the version data taking in the full version rather than resolving it on its own.
src/installer.rs:38
Methodincrement_tasks
()
src/util.rs:66
Methodinstall_dependencies
( parents_mux: Arc<Mutex<Vec<String>>>, context: InstallContext, dependencies: HashMap
src/installer.rs:149
Methodinstall_package
( context: InstallContext, package_info: PackageInfo, parents_mux: Arc<Mutex<Vec<Strin
src/installer.rs:105
Methodis_in_cache
(package: &String, version: &String)
src/cache.rs:124
Methodis_latest
Takes in a result of Versions::resolve_full_version()
src/versions.rs:132
Methodload_cached_version
Package string is formated as package@version
src/cache.rs:143
Functionmain
()
src/main.rs:15
Methodnew
(is_latest: bool)
src/types.rs:32
Methodpackage_data
This makes a request for all data for a package including all its versions. This method should be avoided where possible as its response size is much
src/http.rs:54
Methodparse_raw_package_details
(details: String)
src/versions.rs:24
Methodparse_semantic_package_details
(details: String)
src/versions.rs:44
Methodparse_semantic_version
(raw_version: &str)
src/versions.rs:38
Methodregistry
Make a request to the NPM registry. This includes the recommended header to shorten the response size.
src/http.rs:26
Methodresolve_full_version
If a version comparator has the major, patch and minor available a string version will be returned with the resolved version. This version string can
src/versions.rs:59
Methodresolve_partial_version
Should only be executed if the version comparator is missing a minor or patch. This can be checked with resolve_full_version() which will return None
src/versions.rs:85
Methodsort
This might not be effective for versions that include a prerelease in the version (experimental, canary etc)
src/versions.rs:140
Methodstringify
(name: &String, version: &String)
src/versions.rs:127
Methodstringify_from_numbers
(major: u64, minor: u64, patch: u64)
src/versions.rs:144
Methodtask_count
()
src/util.rs:74
Methodversion_data
This makes a request for a specific version of a package. This method should always be preferred where possible as its response size is significantly
src/http.rs:43
Methodwrite_lockfiles
(dependency_map_mux: DependencyMapMutex)
src/commands/install.rs:29