Skip to content

Commit 8a2aa99

Browse files
author
Simca
committed
SSH Terminal implementation and more granual conf command
- add support for ssh keys import - more accurate command help - ssh, sftp and internal ssh clients - some ui elements correction - usage of tkinter file dialog, in case if it is possible for import procedure
1 parent 42d7baf commit 8a2aa99

38 files changed

+1531
-521
lines changed

.editorconfig

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,5 @@ indent_style = space
1111
indent_size = 2
1212
insert_final_newline = true
1313

14-
[*.rst]
15-
indent_style = space
16-
indent_size = 3
17-
insert_final_newline = true
18-
1914
[*.md]
2015
trim_trailing_whitespace = false

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jobs:
3333
- name: Install dependencies
3434
run: |
3535
python -m pip install --upgrade pip
36+
python -m pip install -r requirements-devel.txt
3637
python -m pip install -r requirements.txt
37-
pip install setuptools wheel twine
3838
3939
- name: Setting variables part 1
4040
id: branch_name

requirements-devel.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
setuptools>=50.3.2
2+
wheel>=0.35.1

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
cryptography>=3.2.1
2-
setuptools>=50.3.2
3-
wheel>=0.35.1
2+
paramiko>=2.7.2

src/openstack_cli/commands/conf.py

Lines changed: 0 additions & 243 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# contributor license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright ownership.
4+
# The ASF licenses this file to You under the Apache License, Version 2.0
5+
# (the "License"); you may not use this file except in compliance with
6+
# the License. You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
from openstack_cli.core.config import Configuration
17+
from openstack_cli.modules.apputils.discovery import CommandMetaInfo, NotImplementedCommandException
18+
19+
__module__ = CommandMetaInfo("conf", "Manage configuration of the application")
20+
21+
def __init__(conf: Configuration):
22+
raise NotImplementedCommandException()
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# contributor license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright ownership.
4+
# The ASF licenses this file to You under the Apache License, Version 2.0
5+
# (the "License"); you may not use this file except in compliance with
6+
# the License. You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
from openstack_cli.modules.apputils.discovery.commands import NotImplementedCommandException
16+
from openstack_cli.modules.apputils.terminal import Colors
17+
from openstack_cli.modules.apputils.terminal.colors import Symbols
18+
from openstack_cli.core.config import Configuration
19+
from openstack_cli.modules.apputils.discovery import CommandMetaInfo
20+
21+
__module__ = CommandMetaInfo("keys", "Manage ssh keys for the VM", default_sub_command="list")
22+
23+
CHECK_ICON = Symbols.CHECK.color(Colors.GREEN)
24+
UNCHECK_ICON = Symbols.CROSS.color(Colors.RED)
25+
KEY_ICON = Symbols.KEY.color(Colors.BRIGHT_YELLOW)
26+
27+
def __init__(conf: Configuration):
28+
raise NotImplementedCommandException()

0 commit comments

Comments
 (0)