Skip to content

Commit 0610d5d

Browse files
#1922 added the slcli file to this repo
1 parent 298cb14 commit 0610d5d

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ dist/*
1515
.cache
1616
.idea
1717
.pytest_cache/*
18-
slcli

README.rst

+7
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ is equivalent to
9898
9999
$ slcli -vvv --format=json vs list
100100
101+
101102
Getting Help
102103
------------
103104
Bugs and feature requests about this library should have a `GitHub issue <https://github.com/softlayer/softlayer-python/issues>`_ opened about them.
@@ -110,6 +111,12 @@ Examples
110111

111112
A curated list of examples on how to use this library can be found at `SLDN <https://softlayer.github.io/python/>`_
112113

114+
Development
115+
-----------
116+
To get started working with this project please read the `CONTRIBUTING <https://github.com/softlayer/softlayer-python/blob/master/CONTRIBUTING.md>`_ document.
117+
118+
You can quickly test local changes by running the './slcli' file, which will load the local softlayer-python code instead of the system's softlayer-python codebase.
119+
113120
Debugging
114121
---------
115122
To get the exact API call that this library makes, you can do the following.

slcli

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!python
2+
# The above might need to be edited to your path to python3
3+
import re
4+
import sys
5+
6+
from SoftLayer.CLI.core import main
7+
8+
if __name__ == '__main__':
9+
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
10+
# print("arvs[0] = %s" % sys.argv[0])
11+
sys.exit(main())

0 commit comments

Comments
 (0)