• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 arkts {'1.1':'11', '1.2':'20'}
35 * @arkts 1.1&1.2
36 */
37export interface ShellCmdResult {
38  /**
39   * the cmd standard result.
40   *
41   * @type { string }
42   * @syscap SystemCapability.Ability.AbilityRuntime.Core
43   * @since 8
44   */
45  /**
46   * the cmd standard result.
47   *
48   * @type { string }
49   * @syscap SystemCapability.Ability.AbilityRuntime.Core
50   * @atomicservice
51   * @since arkts {'1.1':'11', '1.2':'20'}
52   * @arkts 1.1&1.2
53   */
54  stdResult: string;
55
56  /**
57   * shell cmd exec result.
58   *
59   * @type { number }
60   * @syscap SystemCapability.Ability.AbilityRuntime.Core
61   * @since 8
62   */
63  /**
64   * shell cmd exec result.
65   *
66   * @type { number }
67   * @syscap SystemCapability.Ability.AbilityRuntime.Core
68   * @atomicservice
69   * @since arkts {'1.1':'11', '1.2':'20'}
70   * @arkts 1.1&1.2
71   */
72  exitCode: number;
73}
74
75/*** if arkts 1.1 */
76export default ShellCmdResult;
77/*** endif */
78