Creates a new `CLS` command that clears the `console`.
(console: Rc<RefCell<dyn Console>>)
| 61 | impl ClsCommand { |
| 62 | /// Creates a new `CLS` command that clears the `console`. |
| 63 | pub fn new(console: Rc<RefCell<dyn Console>>) -> Rc<Self> { |
| 64 | Rc::from(Self { |
| 65 | metadata: CallableMetadataBuilder::new("CLS") |
| 66 | .with_syntax(&[(&[], None)]) |
| 67 | .with_category(CATEGORY) |
| 68 | .with_description("Clears the screen.") |
| 69 | .build(), |
| 70 | console, |
| 71 | }) |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | #[async_trait(?Send)] |
nothing calls this directly
no test coverage detected