1/* 2 * Copyright (c) 2021-2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16/** 17 * @file 18 * @kit AbilityKit 19 */ 20 21/** 22 * A object that records the result of shell command executes. 23 * 24 * @typedef ShellCmdResult 25 * @syscap SystemCapability.Ability.AbilityRuntime.Core 26 * @since 8 27 */ 28/** 29 * A object that records the result of shell command executes. 30 * 31 * @typedef ShellCmdResult 32 * @syscap SystemCapability.Ability.AbilityRuntime.Core 33 * @atomicservice 34 * @since 11 35 */ 36export interface ShellCmdResult { 37 /** 38 * the cmd standard result. 39 * 40 * @type { string } 41 * @syscap SystemCapability.Ability.AbilityRuntime.Core 42 * @since 8 43 */ 44 /** 45 * the cmd standard result. 46 * 47 * @type { string } 48 * @syscap SystemCapability.Ability.AbilityRuntime.Core 49 * @atomicservice 50 * @since 11 51 */ 52 stdResult: string; 53 54 /** 55 * shell cmd exec result. 56 * 57 * @type { number } 58 * @syscap SystemCapability.Ability.AbilityRuntime.Core 59 * @since 8 60 */ 61 /** 62 * shell cmd exec result. 63 * 64 * @type { number } 65 * @syscap SystemCapability.Ability.AbilityRuntime.Core 66 * @atomicservice 67 * @since 11 68 */ 69 exitCode: number; 70} 71 72export default ShellCmdResult; 73