Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit 4407c33

Browse files
author
Irene
committed
Update changing server address
Allow setting a server address without an organization. Add notice about not supporting tmc.mooc.fi/mooc anymore
1 parent 2432202 commit 4407c33

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/java/fi/helsinki/cs/tmc/cli/command/ConfigCommand.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,11 @@ public void setter(String value) throws BadValueTypeException {
8383
throw new BadValueTypeException("Please start the address with http[s]://");
8484
}
8585
context.getSettings().setServerAddress(addr);
86-
if (!normalizeServerAddress()) {
87-
io.println("There was a problem setting the server address.");
88-
return;
86+
normalizeServerAddress();
87+
if (addr.matches("^https?://tmc.mooc.fi/mooc")) {
88+
io.println("Please note that the server http://tmc.mooc.fi/mooc is no longer supported.");
8989
}
90+
io.println("All courses are now hosted at https://tmc.mooc.fi. We do not advise changing the server address.");
9091
SettingsIo.saveCurrentSettingsToAccountList(context.getSettings());
9192
}
9293
});

0 commit comments

Comments
 (0)