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

Commit 3f5f08a

Browse files
author
Aleksi Salmela
committed
Commit test admin command.
1 parent f149b10 commit 3f5f08a

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package fi.helsinki.cs.tmc.cli.command.admin;
2+
3+
import fi.helsinki.cs.tmc.cli.core.AbstractCommand;
4+
import fi.helsinki.cs.tmc.cli.core.CliContext;
5+
import fi.helsinki.cs.tmc.cli.core.Command;
6+
import fi.helsinki.cs.tmc.cli.io.Io;
7+
8+
import org.apache.commons.cli.CommandLine;
9+
import org.apache.commons.cli.Options;
10+
import org.slf4j.Logger;
11+
import org.slf4j.LoggerFactory;
12+
13+
@Command(name = "admin", desc = "The test command")
14+
public class TestAdminCommand extends AbstractCommand {
15+
16+
private static final Logger logger = LoggerFactory.getLogger(TestAdminCommand.class);
17+
private Io io;
18+
19+
@Override
20+
public void getOptions(Options options) { }
21+
22+
@Override
23+
public void run(CliContext context, CommandLine args) {
24+
this.io = context.getIo();
25+
26+
io.println("test");
27+
}
28+
}

0 commit comments

Comments
 (0)