Skip to content

asas1asas200/HelloPrompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HelloPrompt

Codacy Badge

Prompt some informations on your screen when opened terminal.

demo

Prerequirements

  • git 2.31.1
  • gradle 7.0.2
  • openjdk 15.0.2

Build

git clone https://github.com/asas1asas200/HelloPrompt.git
cd HelloPrompt
./gradlew build
./gradlew run # or run in quiet mode $ ./gradlew run -q 

Get full function of this app

Google Calendar Support

  1. Register an API credentials Google Calendar API
  2. Download the credentials and rename it as credentials.json.
  3. Put it into src/main/resources/

Weather Support

  1. Register an API token by steps in 開發指南

  2. Create a file at src/main/resources.

  3. Rename as authority_key.csv.

  4. Input text like this

    授權碼,{YOUR_TOKEN_HERE}
    

Basic Usage

# build first
./gradlew shadowJar

# run with default location
java -jar build/libs/HelloPrompt-1.0-all.jar

# run with custom location
java -jar build/libs/HelloPrompt-1.0-all.jar --location 桃園市
java -jar build/libs/HelloPrompt-1.0-all.jar -l 新北市

Run it when open the terminal

./gradlew shadowJar
cp build/libs/HelloPrompt-1.0-all.jar ~/Desktop
echo 'java -jar ~/Desktop/HelloPrompt-1.0-all.jar' >> ~/.bashrc

Thanks for

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages