change dir structure of api
Change-Id: I836c66cc628845ff8e16d2c952aae2b9394b7554
This commit is contained in:
parent
205416069e
commit
904208619f
@ -18,10 +18,3 @@ def do_get_log_storage_days(cs, args):
|
||||
endpoint = cs.config.get_days()
|
||||
print(endpoint)
|
||||
return endpoint
|
||||
|
||||
|
||||
def do_get_log(cs, args):
|
||||
"""get log content"""
|
||||
endpoint = cs.config.get_logs(args)
|
||||
print(endpoint)
|
||||
return endpoint
|
||||
|
20
venusclient/v1/search_shell.py
Normal file
20
venusclient/v1/search_shell.py
Normal file
@ -0,0 +1,20 @@
|
||||
# Copyright 2020 Inspur
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
def do_get_log(cs, args):
|
||||
"""get log content"""
|
||||
endpoint = cs.config.get_logs(args)
|
||||
print(endpoint)
|
||||
return endpoint
|
@ -13,7 +13,9 @@
|
||||
# under the License.
|
||||
|
||||
from venusclient.v1 import config_shell
|
||||
from venusclient.v1 import search_shell
|
||||
|
||||
COMMAND_MODULES = [
|
||||
config_shell
|
||||
config_shell,
|
||||
search_shell
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user