diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-07-28 23:03:41 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-07-28 23:03:41 +0000 |
commit | 14418b6d80ef4652a44d9280baf369c8e3c429fd (patch) | |
tree | 59355848e24d6506b413f2b320e0ce0975e67e76 /.gitattributes | |
parent | b33de0bac8172f3571ffc6d46b87de0c906e1b48 (diff) | |
download | vyos-1x-14418b6d80ef4652a44d9280baf369c8e3c429fd.tar.gz vyos-1x-14418b6d80ef4652a44d9280baf369c8e3c429fd.zip |
vyos.util: T4575: Add new wrapper "rc_cmd"
It is useful to have both a return code and output of the command
Add a new wrapper "rc_cmd" that returns both
% rc_cmd('uname')
(0, 'Linux')
% rc_cmd('ip link show dev fake')
(1, 'Device "fake" does not exist.')
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions