feat(commands): more commands (#30)

- I wrote a scripts to copy and generate all commands missing in iris
from fig repo: https://github.com/withfig/autocomplete
- Add a new script to generate commands docs about which commands
currently are inside commands folder
377d4aac663590e504fe39a92eb4dac4cbd333b2
- Add more icons e64d4e70a1db61e62053460a882e093bd6373ab1
This commit is contained in:
VERSE
2026-07-04 22:08:36 +07:00
committed by GitHub
parent ffa336196a
commit 2ef3c90819
482 changed files with 22971 additions and 5 deletions
+63
View File
@@ -0,0 +1,63 @@
package pkginstaller
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "dpkg",
Description: "Debian package management system",
Subcommands: []core.Subcommand{
{Name: "query", Description: "Query the dpkg database"},
{Name: "install", Description: "Install or upgrade packages"},
{Name: "remove", Description: "Remove packages"},
{Name: "purge", Description: "Remove packages and their configuration files"},
{Name: "configure", Description: "Configure a package after installation"},
{Name: "reconfigure", Description: "Reconfigure a package"},
{Name: "list", Description: "List packages in the dpkg database"},
{Name: "builddeb", Description: "Build Debian package files from sources"},
{Name: "check", Description: "Check the dependencies of packages"},
{Name: "compare-versions", Description: "Compare package versions"},
},
Options: []core.Option{
{Name: "-l", Description: "List packages matching a pattern"},
{Name: "-s", Description: "Display the status of available packages"},
{Name: "-L", Description: "List files in a package"},
{Name: "-S", Description: "Search for a package owning a file"},
{Name: "-p", Description: "Display details about a package in the dpkg database"},
{Name: "-W", Description: "Show a package in the dpkg database"},
{Name: "-R", Description: "Recursively handle packages"},
{Name: "-B", Description: "Uninstall packages that depend on the target package"},
{Name: "--skip-same-version", Description: "Don't upgrade if the same version is already installed"},
{Name: "--force-depends", Description: "Ignore dependency problems"},
{Name: "--force-confnew", Description: "Always install the new version of configuration files"},
{Name: "--force-confold", Description: "Always install the old version of configuration files"},
{Name: "--force-confdef", Description: "Always install the default version of configuration files"},
{Name: "--force-confmiss", Description: "Always install missing configuration files"},
{Name: "--no-triggers", Description: "Skip processing triggers"},
{Name: "--no-act", Description: "Simulate the action, but don't execute"},
{Name: "--pending", Description: "Configure all unconfigured packages"},
{Name: "--installed", Description: "List installed packages"},
{Name: "--avail", Description: "List available packages"},
{Name: "--hold", Description: "List packages on hold"},
{Name: "--deferred", Description: "List deferred packages"},
{Name: "-us", Description: "Build unsigned .changes and .dsc files"},
{Name: "-uc", Description: "Build unsigned .changes file"},
{Name: "-sa", Description: "Build source package"},
{Name: "-rfakeroot", Description: "Use fakeroot when building the package"},
{Name: "-b", Description: "Build binary package from source"},
{Name: "--force-sign", Description: "Force signing of changes file"},
{Name: "-m", Description: "Specify the package maintainer"},
{Name: "-c", Description: "Specify the changes file to use"},
{Name: "-v", Description: "Specify the version to use"},
{Name: "--increment", Description: "Increment the version number in the changelog"},
{Name: "-a", Description: "Check all installed packages"},
{Name: "-d", Description: "Check for unmet dependencies"},
{Name: "-i", Description: "Check installed packages"},
{Name: "-U", Description: "Check unpacked packages"},
{Name: "-r", Description: "Check reverse dependencies"},
{Name: "-h", Description: "Help for dpkg"},
},
})
}
+49
View File
@@ -0,0 +1,49 @@
package pkginstaller
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "pkgutil",
Description: "Query and manipulate for macOS Installer packages and receipts",
Subcommands: []core.Subcommand{
{Name: "package-id", Description: "The package ID to list the files of"},
{Name: "path", Description: "The path to update ACLs on"},
{Name: "group-id", Description: "The group ID to list the packages of"},
{Name: "pkg-path", Description: "The path to the flat package to expand"},
{Name: "dir-path", Description: "The path to the directory to expand the package into"},
},
Options: []core.Option{
{Name: "--packages", Description: "List all installed package IDs on the specified --volume"},
{Name: "--pkgs-plist", Description: "List all of the files installed under the package-id"},
{Name: "--export-plist", Description: "The package ID to export the plist of"},
{Name: "--verify", Description: "Run repair_packages(8) to verify the specified package-id"},
{Name: "--repair", Description: "Run repair_packages(8) to repair the specified package-id"},
{Name: "--pkg-info", Description: "Print extended information about the specified package-id"},
{Name: "--pkg-info-plist", Description: "The package ID to print the info of"},
{Name: "--forget", Description: "Discard all receipt data about package-id, but don't touch installed files"},
{Name: "--learn", Description: "Update the ACLs of the given path in the receipt identified by --edit-pkg"},
{Name: "--pkg-groups", Description: "List all of the package groups this package-id is a member of"},
{Name: "--groups", Description: "List all of the package groups ont he specified --volume"},
{Name: "--group-plist", Description: "List all of the packages that are members of this group-id"},
{Name: "--file-info", Description: "Show the metadata known about path"},
{Name: "--file-info-plist", Description: "Show the metadata known about path in Mac OS X plist(5) format"},
{Name: "--expand", Description: "Expand the flat package at pkg-path into a new directory specified by dir-path"},
{Name: "--flatten", Description: "Flatten the dir-path into a new flat package created at pkg-path"},
{Name: "--bom", Description: "The path to the flat package to extract the BOM from"},
{Name: "--payload-files", Description: "List the files archived within the uninstalled flat package(s) at path"},
{Name: "--check-signature", Description: "Check the validity and trust of the signature on the package at pkg-path"},
{Name: "-h", Description: "A brief summary of commands and usage"},
{Name: "-f", Description: "Skip confirmation before a potentially destructive or ambiguous action"},
{Name: "-v", Description: "Output in a human-readable format"},
{Name: "--volume", Description: "Perform all operations on specified volume"},
{Name: "--edit-pkg", Description: "Specifies an existing receipt to be modified in-place by --learn"},
{Name: "--only-files", Description: "List only files (not directories) in --files listing"},
{Name: "--only-dirs", Description: "List only directories (not files) in --files listing"},
{Name: "--regexp", Description: "Use regex to match package-id arguments, if an exact match isn't found"},
{Name: "--pkgs", Description: "Regular expression"},
},
})
}