Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chawyehsu/hok
/ functions
Functions
375 in github.com/chawyehsu/hok
⨍
Functions
375
◇
Types & classes
95
↓ 2 callers
Method
homepage
(&self)
crates/libscoop/src/package/mod.rs:152
↓ 2 callers
Function
humansize
Convert bytes to KB/MB/GB representation.
src/util.rs:2
↓ 2 callers
Method
installer
(&self)
crates/libscoop/src/package/manifest.rs:903
↓ 2 callers
Method
load_cache
(&self)
crates/libscoop/src/package/download.rs:129
↓ 2 callers
Method
manifests
Get manifests from the bucket. # Returns a list of DirEntry of manifest files. # Errors I/O errors will be returned if the bucket directory is not
crates/libscoop/src/bucket.rs:161
↓ 2 callers
Method
md5
Use the md5 hash algorithm.
crates/scoop_hash/src/lib.rs:114
↓ 2 callers
Method
no_junction
(&self)
crates/libscoop/src/config.rs:270
↓ 2 callers
Function
package_hold
Hold or unhold a package. # Errors This method will return an error if the package is not installed. A [`PackageHoldBrokenInstall`][1] error will b
crates/libscoop/src/operation.rs:320
↓ 2 callers
Method
parse
Create a [`Manifest`] representation of a manfest JSON file with the given path. ## Errors If the process fails to read the file, this method will r
crates/libscoop/src/package/manifest.rs:748
↓ 2 callers
Method
post_install
(&self)
crates/libscoop/src/package/manifest.rs:888
↓ 2 callers
Method
post_uninstall
(&self)
crates/libscoop/src/package/manifest.rs:898
↓ 2 callers
Method
pre_install
(&self)
crates/libscoop/src/package/manifest.rs:883
↓ 2 callers
Method
pre_uninstall
(&self)
crates/libscoop/src/package/manifest.rs:893
↓ 2 callers
Method
remote_url
Get the remote url of the bucket. # Returns The git remote url of the bucket, otherwise none if the bucket is not a git repository, or it's a local
crates/libscoop/src/bucket.rs:95
↓ 2 callers
Method
remove_view
Get packages that will be removed with the transaction. # Returns A reference to the vector of packages that will be removed or `None` if no package
crates/libscoop/src/package/sync.rs:297
↓ 2 callers
Method
result
(mut self)
crates/scoop_hash/src/selfcontained/sha512.rs:146
↓ 2 callers
Method
result
(mut self)
crates/scoop_hash/src/selfcontained/md5.rs:70
↓ 2 callers
Method
result
(mut self)
crates/scoop_hash/src/selfcontained/sha256.rs:67
↓ 2 callers
Method
result
(mut self)
crates/scoop_hash/src/selfcontained/sha1.rs:56
↓ 2 callers
Function
select_candidate
Select one from multiple package candidates, interactively if possible.
crates/libscoop/src/package/resolve.rs:113
↓ 2 callers
Function
set
Set the value of an environment variable. If the value is an empty string, the variable is deleted.
crates/libscoop/src/internal/env.rs:39
↓ 2 callers
Function
set_cookie
(easy: &mut Easy, cookie: &[(&str, &str)])
crates/libscoop/src/package/download.rs:433
↓ 2 callers
Method
set_upgrade
(&self, packages: Vec<Package>)
crates/libscoop/src/package/sync.rs:236
↓ 2 callers
Method
sha1
Use the sha1 hash algorithm.
crates/scoop_hash/src/lib.rs:120
↓ 2 callers
Method
sha512
Use the sha512 hash algorithm.
crates/scoop_hash/src/lib.rs:132
↓ 2 callers
Method
source
(&self)
crates/libscoop/src/bucket.rs:107
↓ 2 callers
Method
step
(&mut self)
crates/libscoop/src/internal/dag.rs:163
↓ 2 callers
Function
symlink
(src: P, lnk: Q)
crates/libscoop/src/internal/fs.rs:209
↓ 2 callers
Method
uninstaller
(&self)
crates/libscoop/src/package/manifest.rs:907
↓ 2 callers
Method
upgradable_version
Get the upgradable version of this package. # Returns The upgradable version when the package is upgradable, otherwise `None`.
crates/libscoop/src/package/mod.rs:315
↓ 1 callers
Method
add_view
(&self)
crates/libscoop/src/package/sync.rs:252
↓ 1 callers
Method
algo
Use the specified hash algorithm. # Errors Returns an error if the specified algorithm is not supported.
crates/scoop_hash/src/lib.rs:103
↓ 1 callers
Method
algorithm
Return the hash algorithm. # Returns - `md5` - `sha1` - `sha256` - `sha512`
crates/libscoop/src/package/manifest.rs:1117
↓ 1 callers
Method
architecture
(&self)
crates/libscoop/src/package/manifest.rs:829
↓ 1 callers
Method
args
(&self)
crates/libscoop/src/package/manifest.rs:1152
↓ 1 callers
Function
bucket_add
Add a bucket to Scoop. # Errors This method will return an error if the bucket already exists, or the remote url is not specified when adding a non
crates/libscoop/src/operation.rs:46
↓ 1 callers
Function
bucket_list
Get a list of added buckets. # Returns A list of added buckets sorted by name.Buckets cannot be parsed will be filtered out. # Errors I/O errors w
crates/libscoop/src/operation.rs:81
↓ 1 callers
Function
bucket_list_known
Get a list of known (built-in) buckets. # Returns A list of known buckets.
crates/libscoop/src/operation.rs:93
↓ 1 callers
Function
bucket_remove
Remove a bucket from Scoop. # Errors This method will return an error if the bucket does not exist. I/O errors will be returned if the bucket direct
crates/libscoop/src/operation.rs:190
↓ 1 callers
Function
bucket_update
Update all added buckets. # Errors I/O errors will be returned if the `buckets` directory is not readable or failed to start up the update threads.
crates/libscoop/src/operation.rs:107
↓ 1 callers
Method
calculate_download_size
Calculate download size. This function is actually a pre-download process, which will try to fetch the remote file size of each package file.
crates/libscoop/src/package/download.rs:322
↓ 1 callers
Method
cat_style
(&self)
crates/libscoop/src/config.rs:282
↓ 1 callers
Method
check
Check if cyclic dependency exist in the graph. This method does not remove any nodes from the graph, instead it manipulates a clone of the graph.
crates/libscoop/src/internal/dag.rs:170
↓ 1 callers
Function
clone_repo
(remote_url: S, path: P, proxy: Option<S>)
crates/libscoop/src/internal/git.rs:44
↓ 1 callers
Method
commit
Commit config changes and save to the config file
crates/libscoop/src/config.rs:360
↓ 1 callers
Function
config_list
Get the configuation list. # Returns A string of the configuation list in pretty-printed JSON format. # Errors Serde errors will be returned if th
crates/libscoop/src/operation.rs:284
↓ 1 callers
Function
create_app
()
src/lib.rs:34
↓ 1 callers
Method
depends
(&self)
crates/libscoop/src/package/manifest.rs:824
↓ 1 callers
Method
download
Download packages.
crates/libscoop/src/package/download.rs:191
↓ 1 callers
Method
download_hashes
(&self)
crates/libscoop/src/package/mod.rs:223
↓ 1 callers
Function
empty_dir
(path: &P)
crates/libscoop/src/internal/fs.rs:31
↓ 1 callers
Method
env_add_path
Returns `env_add_path` defined in this manifest.
crates/libscoop/src/package/manifest.rs:851
↓ 1 callers
Method
env_set
Returns `env_set` defined in this manifest.
crates/libscoop/src/package/manifest.rs:857
↓ 1 callers
Function
error
(input: &T)
src/lib.rs:13
↓ 1 callers
Method
fail
Set the bucket progress to failed.
src/cui.rs:109
↓ 1 callers
Method
failed
Check if the state is failed.
crates/libscoop/src/bucket.rs:315
↓ 1 callers
Method
fill_upgradable
(&self, upgradable: Package)
crates/libscoop/src/package/mod.rs:415
↓ 1 callers
Function
get
Get the value of an environment variable. Returns an empty string if the variable is not set.
crates/libscoop/src/internal/env.rs:31
↓ 1 callers
Function
get_path_like_env
Get the value of a path-like environment variable.
crates/libscoop/src/internal/env.rs:11
↓ 1 callers
Method
has_install_script
Check if this package defines install hooks (powershell scripts) in its manifest.
crates/libscoop/src/package/mod.rs:372
↓ 1 callers
Method
has_uninstall_script
Check if this package defines uninstall hooks (powershell scripts) in its manifest.
crates/libscoop/src/package/mod.rs:387
↓ 1 callers
Method
hash
Extract file hashes from this manifest, in following order: - For `amd64` return "64bit" hashes if available else noarch hashes; - For `ia32` return
crates/libscoop/src/package/manifest.rs:950
↓ 1 callers
Method
held
(&self)
crates/libscoop/src/package/mod.rs:70
↓ 1 callers
Method
identifier
(&self)
crates/libscoop/src/package/manifest.rs:1052
↓ 1 callers
Method
init
Initialize the config with default values. This function will try to write the default config to the default path, located in the XDG_CONFIG_HOME dir
crates/libscoop/src/config.rs:245
↓ 1 callers
Method
inner_receiver
Get the inbound receiver of the event bus.
crates/libscoop/src/event.rs:54
↓ 1 callers
Method
inner_sender
Get the outbound sender of the event bus.
crates/libscoop/src/event.rs:49
↓ 1 callers
Method
innosetup
(&self)
crates/libscoop/src/package/manifest.rs:874
↓ 1 callers
Function
install
Sync operation: install and/or upgrade packages.
crates/libscoop/src/package/sync.rs:319
↓ 1 callers
Method
is_installed
Check if the package is installed.
crates/libscoop/src/package/mod.rs:276
↓ 1 callers
Function
is_program_available
Check if a given executable is available on the system
src/cmd/cat.rs:87
↓ 1 callers
Method
is_spdx
(&self)
crates/libscoop/src/package/manifest.rs:1058
↓ 1 callers
Function
leaf
(path: &P)
crates/libscoop/src/internal/path.rs:11
↓ 1 callers
Function
leaf_base
(path: &P)
crates/libscoop/src/internal/path.rs:19
↓ 1 callers
Method
load
Load the config file from the config path.
crates/libscoop/src/config.rs:32
↓ 1 callers
Method
package_name
(&self)
crates/libscoop/src/cache.rs:35
↓ 1 callers
Method
path_of_manifest
Get the manifest path of the given package name. # Returns The path of the manifest file, none if the package is not in the bucket.
crates/libscoop/src/bucket.rs:116
↓ 1 callers
Method
persist
(&self)
crates/libscoop/src/package/manifest.rs:913
↓ 1 callers
Function
possible_config_paths
Get a list of possible config paths. There are 3 possible locations for the `config.json` file: 1) Side-by-side with the real executable (symlink res
crates/libscoop/src/config.rs:428
↓ 1 callers
Method
pretty
Pretty print the config
crates/libscoop/src/config.rs:365
↓ 1 callers
Function
progress
Report package download progress.
crates/libscoop/src/package/download.rs:471
↓ 1 callers
Method
psmodule
(&self)
crates/libscoop/src/package/manifest.rs:919
↓ 1 callers
Function
remote_url_of
(repo_path: &Path, remote: S)
crates/libscoop/src/internal/git.rs:84
↓ 1 callers
Function
remove
Unset all environment variables defined by a given package.
crates/libscoop/src/env.rs:4
↓ 1 callers
Method
reset
(&mut self)
crates/libscoop/src/internal/dag.rs:91
↓ 1 callers
Method
reset
(&mut self)
crates/scoop_hash/src/selfcontained/sha512.rs:135
↓ 1 callers
Method
reset
(&mut self)
crates/scoop_hash/src/selfcontained/md5.rs:59
↓ 1 callers
Method
reset
(&mut self)
crates/scoop_hash/src/selfcontained/sha256.rs:56
↓ 1 callers
Method
reset
(&mut self)
crates/scoop_hash/src/selfcontained/sha1.rs:45
↓ 1 callers
Function
reset_head
NOTE: this will discard all local changes.
crates/libscoop/src/internal/git.rs:60
↓ 1 callers
Function
resolve_cascade
Resolve unneeded dependencies of the given packages. # Note This function is used to resolve the unneeded dependencies of the given packages. The un
crates/libscoop/src/package/resolve.rs:161
↓ 1 callers
Function
resolve_dependencies
Resolve dependencies of the given packages. # Note This function ensures that packages are unique and sorted in dependency first order.
crates/libscoop/src/package/resolve.rs:15
↓ 1 callers
Method
set_download_size
(&self, download_size: DownloadSize)
crates/libscoop/src/package/sync.rs:248
↓ 1 callers
Method
set_failed
(&mut self, msg: &str)
crates/libscoop/src/bucket.rs:285
↓ 1 callers
Method
set_held
(&mut self, flag: bool)
crates/libscoop/src/package/manifest.rs:1271
↓ 1 callers
Method
set_install
(&self, packages: Vec<Package>)
crates/libscoop/src/package/sync.rs:232
↓ 1 callers
Method
set_remove
(&self, packages: Vec<Package>)
crates/libscoop/src/package/sync.rs:244
↓ 1 callers
Method
set_replace
(&self, packages: Vec<Package>)
crates/libscoop/src/package/sync.rs:240
↓ 1 callers
Method
set_succeeded
(&mut self)
crates/libscoop/src/bucket.rs:281
↓ 1 callers
Method
set_user_agent
Set the user agent for the session. User agent is used when performing network related operations such as downloading packages. User agent for a sess
crates/libscoop/src/session.rs:142
← previous
next →
101–200 of 375, ranked by callers