Skip to content

Commit

Permalink
Merge pull request #2045 from ramkishor-ch/issue_2044
Browse files Browse the repository at this point in the history
moved cliChecker folder to softlayer-python folder because new changes are not picking up
  • Loading branch information
allmightyspiff authored Jul 19, 2023
2 parents db7a4ed + d0f1197 commit bd95421
Show file tree
Hide file tree
Showing 3 changed files with 940 additions and 544 deletions.
6 changes: 5 additions & 1 deletion cliChecker/checker.py → checker.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from SoftLayer.CLI import environment
from click.testing import CliRunner
from SoftLayer.CLI.core import cli
import itertools

runner = CliRunner()
env = environment.Environment()
Expand Down Expand Up @@ -68,7 +69,10 @@ def printBody(commandArray):
f.write("\t--------------------------------\n")
f.write(f'\tDescription: {commandArray[2].strip()}\n')
f.write("\t--------------------------------\n")
f.write(f'\tUsage: {commandArray[0]}\n')
list_of_strings = "".join(commandArray[0])
command_strings=list_of_strings.replace("Usage: cli","Usage: slcli")
grouped_strings = ["".join(g) for k, g in itertools.groupby(command_strings, lambda x: x == " ") if not k]
f.write(f'\t{" ".join(grouped_strings)}\n')
f.write("==============================================================\n")


Expand Down
5 changes: 3 additions & 2 deletions cliChecker/README.md → checker_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Script to list all commands in order to compare the changes
From the softlayer-python root directory, do the following after making changes.

```
cd cliChecker
py checker.py
pip install SoftLayer
cd softlayer-python
python checker.py
```
Loading

0 comments on commit bd95421

Please sign in to comment.