浏览代码

Add example command satcmd-dump

Useful for testing saturnin itself
Alois Mahdal 9 年前
父节点
当前提交
37eda51096
共有 3 个文件被更改,包括 7 次插入0 次删除
  1. 1
    0
      mkit.ini
  2. 1
    0
      packaging/satcmd.spec
  3. 5
    0
      src/libexec/satcmd-dump

+ 1
- 0
mkit.ini 查看文件

57
     src/complete.bash           = satcmd.bash
57
     src/complete.bash           = satcmd.bash
58
 
58
 
59
 [files:libexec]
59
 [files:libexec]
60
+    src/libexec/satcmd-dump     = satcmd-dump
60
     src/libexec/satcmd-echo     = satcmd-echo
61
     src/libexec/satcmd-echo     = satcmd-echo
61
 
62
 
62
 [files:share]
63
 [files:share]

+ 1
- 0
packaging/satcmd.spec 查看文件

42
 %dir /usr/local/share/satcmd/shellfu
42
 %dir /usr/local/share/satcmd/shellfu
43
 %doc /usr/local/share/doc/satcmd/README.md
43
 %doc /usr/local/share/doc/satcmd/README.md
44
 /usr/local/bin/satcmd
44
 /usr/local/bin/satcmd
45
+/usr/local/libexec/satcmd/satcmd-dump
45
 /usr/local/libexec/satcmd/satcmd-echo
46
 /usr/local/libexec/satcmd/satcmd-echo
46
 /usr/local/share/satcmd/ini.d/main/echo.ini
47
 /usr/local/share/satcmd/ini.d/main/echo.ini
47
 /usr/local/share/satcmd/shellfu/saturnin.sh
48
 /usr/local/share/satcmd/shellfu/saturnin.sh

+ 5
- 0
src/libexec/satcmd-dump 查看文件

1
+#!/bin/bash
2
+
3
+. "$(shellfu-get path)" || exit 3
4
+
5
+env | sort | xargs -L 1 satcmd echo