An interactive console client for TTT: The Time Tracker written in Scala.
- Install SBT, a build tool for Scala
- Run
sbt
from the root folder of the project (the folder where this file is) - Type
compile
to fetch dependencies and compile,run
to run. - Type
assembly
to create portable jar including all dependencies in foldertarget
⚠️ This jar may have really big size of some dozens of megabytes.
If SBT cmdline is not enough for you, do the following to start using IDEA with this project:
-
Make sure that SBT is installed anyway
-
Open IDEA and install SBT plugin and Scala plugin from repositories:
- Go to
File
>Settings
>Plugins
, clickBrowse repositories...
- Type
SBT
in the search field and double-click on the first result - Do the same with
Scala
keyword - Click
Yes
,Close
,OK
to apply changes and agree to restart IDEA - After restart go to
File
>Settings
>SBT
and fill in the path tosbt-launch.jar
(should be in the installation dir of SBT, e.g.C:\Program Files (x86)\sbt\sbt-launch.jar
for 64-bit Windows)
- Go to
-
Run
sbt gen-idea
from the root folder of the project (the folder where this file is) -
Open the generated project in IDEA. Configure Run configuration to be able to run TTTish from it:
- Go to
Run
>Edit configurations
- Click green plus (
Add new configuration
), chooseApplication
- Fill in
Main Class
withru.moonlighters.tttish.Main
(or choose it from...
button) - Select
tttish
inUse classpath or module
- Remove
Make
fromBefore launch
list, instead add SBT action by clicking green plus (Add
), choosingSBT
and selectingcompile
in the dropdown list.
- Go to
If your IDE is not IDEA... Well, have fun ;) Try googling for "%yourIDE% sbt integration" or ask friends...
Place your .tttrc
file (e.g. downloaded from Account page) in your home dir or working dir of this app.
Run, then enter commands one by one. Enter help
for the list of available commands.
You can use login
command to login if you do not provide .tttrc
or it doesn't contain your api key.