Skip to content

Commit

Permalink
Merge pull request #410 from sanders41/entry-point
Browse files Browse the repository at this point in the history
Change entry point command from weather-command to weather
  • Loading branch information
sanders41 committed Apr 15, 2023
2 parents 7a16715 + 36c41be commit 83c5cba
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Please include:
[GitHub markdown](https://docs.github.com/en/free-pro-team@latest/github/writing-on-github). For example:

```sh
weather-command city Seattle
weather city Seattle
```

2. Explain what is currently happening and what you expect instead.
Expand All @@ -30,9 +30,9 @@ this project.
Once the project is forked clone it to your local machine:

```sh
git clone https://github.com/your-user-name/weather-command.git
git clone git@github.com:your-user-name/weather-command
cd weather-command
git remote add upstream https://github.com/sanders41/weather-command.git
git remote add upstream git@github.com:sanders41/weather-command
```

This creates the directory weather-command and connects your repository to the upstream (main project) repository.
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ will prevent the need to re-add the key each time the shell is started.
To get the weather for a city:

```sh
weather-command city seattle
weather city seattle
```

Once installed you can also add aliases to your shell to make it quick to get a forecast. For example
if your shell is zsh you can add something like the following to your `~/.zshrc` file:

```sh
alias we="weather-command zip 98109 -i --am-pm"
alias wed="weather-command zip 98109 -i --am-pm -f daily"
alias weh="weather-command zip 98109 -i --am-pm -f hourly"
alias we="weather zip 98109 -i --am-pm"
alias wed="weather zip 98109 -i --am-pm -f daily"
alias weh="weather zip 98109 -i --am-pm -f hourly"
```

After adding this to the `~/.zshrc` you will need to restart your terminal. After that typing `we`
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "weather-command"
version = "5.2.2"
version = "6.0.0"
description = "Command line weather app"
authors = ["Paul Sanders <psanders1@gmail.com>"]
license = "MIT"
Expand Down Expand Up @@ -37,7 +37,7 @@ requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.scripts]
weather-command = "weather_command.main:app"
weather = "weather_command.main:app"

[tool.black]
line-length = 100
Expand Down
2 changes: 1 addition & 1 deletion weather_command/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from weather_command._utils import build_weather_url
from weather_command._weather import get_current_weather, get_one_call_weather

__version__ = "5.2.2"
__version__ = "6.0.0"

app = Typer()
app.add_typer(settings_commands.app, name="settings", help="Manage saved settings.")
Expand Down

0 comments on commit 83c5cba

Please sign in to comment.