mirror of
https://github.com/lancatlin/mdsh.git
synced 2026-11-06 03:30:13 +08:00
feat: add raw func and allow using funcs in output name
This commit is contained in:
1 parent
a2c99c710e
commit
d4e85844a4
5 files changed
+158
-62
No files matched your search
@@ -0,0 +1,29 @@
|
||||
---
|
||||
output: sys-report-{{ raw "date --iso-8601" }}.md
|
||||
---
|
||||
|
||||
# 💥 System Information Report for {{ sh "hostname" }}
|
||||
|
||||
* **Hostname**: {{ sh "hostname" }}
|
||||
* **Username**: {{ sh "whoami" }}
|
||||
* **Uptime**: {{ sh "uptime -p" }}
|
||||
* **System**: {{ sh "uname -a" }}
|
||||
* **CPU**: {{ sh "uname -m" }} — {{ sh "nproc" }} cores
|
||||
* **IP Address**: {{ sh "hostname -I || ip a | grep inet" }}
|
||||
* **Default Gateway**: {{ sh "ip route | grep default || netstat -rn | grep default" }}
|
||||
|
||||
---
|
||||
|
||||
## 🧠 Memory Usage
|
||||
|
||||
{{ shell "free -h" }}
|
||||
|
||||
---
|
||||
|
||||
## 📉 Disk Usage
|
||||
|
||||
{{ shell "df -h /" }}
|
||||
|
||||
---
|
||||
|
||||
Generated on: {{ sh "date" }}
|
||||
Reference in new issue
Block a user