历史记录 =========== 命令: ``history`` 所有CLI命令操作都被记录着,可用 ``history`` 命令查看。 用 ``--help`` 命令可看到有以下信息: .. code-block:: shell anyctl history --help .. code-block:: text Usage: anyctl history [OPTIONS] Show project's task history. Options: -t, --type [get|clean] Actions on history, default "get". --help Show this message and exit. +---------------------------+----------+-------------+---------------------------------------------------------+ | 参数及缩写 | 是否必须 | 默认值 | 说明 | +===========================+==========+=============+=========================================================+ | -\-type, -t | False | get | 查看或清除历史记录 [get|clean] | +---------------------------+----------+-------------+---------------------------------------------------------+ 查看历史记录 --------------- 使用示例: .. code-block:: shell anyctl history 运行后会有以下输出,显示操作时间、命令和命令执行结果: .. code-block:: text ... #仅截取一部分做展示 [2021-09-02 15:21:57] anyctl download training TRAIxxx -s D:\anyctl-test\download\train_result [SUCCESS] DOWNLOAD! D:\anyctl-test\download\train_result\downloads_FILExxx.zip [2021-09-02 15:22:16] anyctl download training TRAIxxx -s D:\anyctl-test\download\train_result --async-download [SUCCESS] DOWNLOAD! D:\anyctl-test\download\train_result\['downloads_FILExxx.zip'] [2021-09-02 15:53:31] anyctl rm algorithm cli_example_algo [SUCCESS] REMOVED [2021-09-02 15:59:00] anyctl rm dataset testctldset [SUCCESS] REMOVED [2021-09-02 16:07:27] anyctl reset [2021-09-02 16:08:30] anyctl reset [SUCCESS] Local project has been reverted. However, runtime files such as .json are kept. You can still make use of them in other projects, or remove them manually when no longer needed. 清除历史记录 --------------- 使用示例: .. code-block:: shell anyctl history -t clean 运行后会有以下提示: .. code-block:: text All cmd history will be cleared, continue? [y/N]: 输入 ``y`` 清除所有记录: .. code-block:: text History has been cleared