2.10. hammer 书签
管理书签
Usage: hammer bookmark [OPTIONS] SUBCOMMAND [ARG] ... Parameters: SUBCOMMAND Subcommand [ARG] ... Subcommand arguments Subcommands: create Create a bookmark delete, destroy Delete a bookmark info, show Show a bookmark list, index List all bookmarks update Update a bookmark Options: -h, --help Print help
2.10.1. hammer 书签创建
创建书签
Usage: hammer bookmark create [OPTIONS] Options: --controller CONTROLLER --name NAME --public PUBLIC One of true/false, yes/no, 1/0. --query QUERY -h, --help Print help
2.10.2. hammer 书签删除
删除书签
Usage: hammer bookmark <delete|destroy> [OPTIONS] Options: --id ID --name NAME Name to search by -h, --help Print help
2.10.3. hammer 书签信息
显示书签
Usage: hammer bookmark <info|show> [OPTIONS] Options: --fields FIELDS Show specified fields or predefined field sets only. (See below) Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --id ID --name NAME Name to search by -h, --help Print help Predefined field sets: -------------|-----|---------|----- FIELDS | ALL | DEFAULT | THIN -------------|-----|---------|----- Id | x | x | x Name | x | x | x Controller | x | x | Search query | x | x | Public | x | x | Owner id | x | x | Owner type | x | x | -------------|-----|---------|-----
2.10.4. hammer 书签列表
列出所有书签
Usage: hammer bookmark <list|index> [OPTIONS] Options: --fields FIELDS Show specified fields or predefined field sets only. (See below) Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --order ORDER Sort field and order, eg. ‘id DESC’ --page PAGE Page number, starting at 1 --per-page PER_PAGE Number of results per page to return, 'all' to return all results --search SEARCH Filter results -h, --help Print help Predefined field sets: -------------|-----|---------|----- FIELDS | ALL | DEFAULT | THIN -------------|-----|---------|----- Id | x | x | x Name | x | x | x Controller | x | x | Search query | x | x | Public | x | x | Owner id | x | x | Owner type | x | x | -------------|-----|---------|----- Search / Order fields: controller string name string
2.10.5. hammer 书签更新
更新书签
Usage: hammer bookmark update [OPTIONS] Options: --controller CONTROLLER --id ID --name NAME Name to search by --new-name NEW_NAME --public PUBLIC One of true/false, yes/no, 1/0. --query QUERY -h, --help Print help