Linux command
koji-call 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
Example
koji call build '"git+https://src.fedoraproject.org/rpms/pkg.git#commit"' target
Example
koji call build '"git+https://url#commit"' target --kwargs '{"opts":{"scratch": True}}'
Example
koji call build '"git+https://url#commit"' target --kwargs '{"opts":{"arch_override":"x86_64"}}'
Example
koji call build '"git+https://url#commit"' target --kwargs '{"channel":"default"}'
Example
koji call --help
说明
koji call executes an arbitrary XML-RPC call to the Koji hub. This allows direct access to the Koji API for advanced operations not covered by standard subcommands. The function signature follows the Koji API, such as `build(src, target, opts=None, priority=None, channel=None)`. Arguments are passed positionally, with complex options provided via `--kwargs`.
参数
- function
- The XML-RPC function name to call
- --kwargs JSON
- Pass keyword arguments as JSON object
- --json-output
- Output results in JSON format
- -h, --help
- Display help information
FAQ
What is the koji-call command used for?
koji call executes an arbitrary XML-RPC call to the Koji hub. This allows direct access to the Koji API for advanced operations not covered by standard subcommands. The function signature follows the Koji API, such as `build(src, target, opts=None, priority=None, channel=None)`. Arguments are passed positionally, with complex options provided via `--kwargs`.
How do I run a basic koji-call example?
Run `koji call build '"git+https://src.fedoraproject.org/rpms/pkg.git#commit"' target` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does function do in koji-call?
The XML-RPC function name to call