Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Allow user to use Backspace in paictl input (#2769)
Browse files Browse the repository at this point in the history
Allow user to use <kbd>Backspace</kbd> when inputing in paictl.
Currently, <kbd>Backspace</kbd> will results `^H` in stdin.
  • Loading branch information
abuccts authored May 17, 2019
1 parent 3722f97 commit 1e1b6bc
Show file tree
Hide file tree
Showing 9 changed files with 64 additions and 1 deletion.
19 changes: 19 additions & 0 deletions deployment/clusterCmd.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
# Copyright (c) Microsoft Corporation
# All rights reserved.
#
# MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
# to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
# BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


import os
import sys
import time
import readline
import logging
import logging.config

Expand Down
1 change: 1 addition & 0 deletions deployment/confStorage/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import subprocess
import jinja2
import argparse
import readline
import logging
import logging.config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import os
import sys
import yaml
import readline
import logging
import logging.config

Expand Down
1 change: 1 addition & 0 deletions deployment/confStorage/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import subprocess
import jinja2
import argparse
import readline
import logging
import logging.config

Expand Down
3 changes: 2 additions & 1 deletion deployment/k8sPaiLibrary/maintainlib/kubectl_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@

import os
import sys
import time
import common
import readline
import logging
import time
import logging.config


Expand Down
19 changes: 19 additions & 0 deletions deployment/machineCmd.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
# Copyright (c) Microsoft Corporation
# All rights reserved.
#
# MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
# to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
# BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


import os
import sys
import time
import readline
import logging
import logging.config

Expand Down
19 changes: 19 additions & 0 deletions deployment/serviceCmd.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
# Copyright (c) Microsoft Corporation
# All rights reserved.
#
# MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the "Software"), to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
# to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
# BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


import os
import readline
import logging
import logging.config

Expand Down
1 change: 1 addition & 0 deletions deployment/utility/sftp_copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from ..k8sPaiLibrary.maintainlib import common

import sys
import readline
import logging
import logging.config

Expand Down
1 change: 1 addition & 0 deletions deployment/utility/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from ..clusterObjectModel import cluster_object_model
from ..k8sPaiLibrary.maintainlib import common
import sys
import readline
import logging
import logging.config

Expand Down

0 comments on commit 1e1b6bc

Please sign in to comment.