Skip to content

Commit d0227fc

Browse files
committed
renamed CLI function compile to lock, fixed grammar issue
1 parent 9e7e572 commit d0227fc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Algorithmia/CLI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def cat(self, path, client):
246246

247247
return result
248248

249-
def compileAlgo(self, client, manifest_path="model_manifest.json"):
249+
def lockAlgo(self, client, manifest_path="model_manifest.json"):
250250
if os.path.exists(manifest_path):
251251
with open(manifest_path, 'r') as f:
252252
manifest_file = json.load(f)

Algorithmia/__main__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ def main():
130130
subparsers.add_parser('help')
131131
parser.add_argument('--profile', action = 'store', type = str, default = 'default')
132132

133-
#sub parser for compile
134-
subparsers.add_parser('compile', help="compile's a model_manifest.json file into a model_manifest.json.lock")
133+
#sub parser for lock
134+
subparsers.add_parser('lock', help="locks a model_manifest.json file into a model_manifest.json.lock")
135135

136136
args = parser.parse_args()
137137

@@ -219,8 +219,8 @@ def main():
219219
elif args.cmd == 'builds':
220220
print(CLI().getBuildLogs(args.user, args.algo, client))
221221

222-
elif args.cmd == "compile":
223-
print(CLI().compileAlgo(client))
222+
elif args.cmd == "lock":
223+
print(CLI().lockAlgo(client))
224224

225225
else:
226226
parser.parse_args(['-h'])

0 commit comments

Comments
 (0)