diff --git a/venusclient/v1/config_shell.py b/venusclient/v1/config_shell.py index 15f19ca..31dfa95 100644 --- a/venusclient/v1/config_shell.py +++ b/venusclient/v1/config_shell.py @@ -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 diff --git a/venusclient/v1/search_shell.py b/venusclient/v1/search_shell.py new file mode 100644 index 0000000..ddb40dd --- /dev/null +++ b/venusclient/v1/search_shell.py @@ -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 diff --git a/venusclient/v1/shell.py b/venusclient/v1/shell.py index e7df84f..9194518 100644 --- a/venusclient/v1/shell.py +++ b/venusclient/v1/shell.py @@ -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 ]