Commit Graph

26 Commits

Author SHA1 Message Date
Matej Janezic 2754a3bb30
feat: compile time completion generation
Removed `completion` command in favor of compile time completion
generation. This tool will only be build from source for the foreseeable
future so this makes sense for now.
2023-08-09 14:45:07 +02:00
Matej Janezic e061d6dc6c
feat: add compose ps command
Ps is new command scoped under compose. It is just proxy to `docker
compose ps`.
2023-08-09 13:59:58 +02:00
Matej Janezic b45cfd3e0a
feat: add compose exec and compose bash commands
Exec is new command scoped under compose. It allows sending commands
directly into appserver container. I will make this
customizable/controllable in the future.
2023-06-15 19:58:43 +02:00
Matej Janezic 7bf76d3ff2
release: v0.3.0
Various qol improvements and custom CommandBuilder mark v0.3.0 release
2023-06-02 17:20:19 +02:00
Matej Janezic 316b37cd05
feat: custom command builder
Implemented custom command builder with nicer api suited for my needs.
Also returned error if there are no containers in
`scripts::postgres::get_containers`.
2023-06-02 17:18:25 +02:00
Matej Janezic e3306c494d
feat: prepulate command in make-command
Fixed bug where created command file didn't end with `.py` and
prepopulate created file with minimal example of django management command.
2023-06-02 17:16:15 +02:00
Matej Janezic 5d45eccfef
feat: add django test command
Added django's manage.py test command as a shortcut
2023-06-02 17:15:39 +02:00
Matej Janezic 251826c048
feat: print $DJANGO_SETTINGS_MODULE when it's needed 2023-06-02 17:07:13 +02:00
Matej Janezic 63b4b60f9a
fix: duplicated help message
Django subcommand had the same help message as compose.
2023-06-02 16:56:26 +02:00
Matej Janezic 55d4ae3f6f
release: version 0.2.0
Command renamings and compltion generation marks v0.2.0 of `ahab`.
2023-05-27 13:32:46 +02:00
Matej Janezic de5e6b4d10
feat: rename commands and remove aliases in favour of completion
BREAKING CHANGE: changed commands as follows
D -> Docker
Dc -> Compose
Dj -> Django
Pg -> Postgres
2023-05-27 13:30:09 +02:00
Matej Janezic 61e7556997
feat: add clap_complete for generating completion files
`ahab generate <shell>` can now be used to generte completion files for
this tool.
2023-05-27 13:28:05 +02:00
Matej Janezic a9a5e401dc
refactor: create library with simple entrypoint in main
Create a library entrypoint 'src/lib.rs' and refactor binary entrypoint
'src/main.rs' accordingly.
2023-05-27 12:52:10 +02:00
Matej Janezic 423badfe07
fix: all django management command related subcommands
We just called `manage` inside docker instead of
`exec appserver python manage.py`. Now we make assumption that django
app is running in docker-compose in service named `appserver`.

While fixing this bug we also refactored for `shell`, `makemigrations`
and `migrate` to all call `manage` under the hood to avoid repeating code.
2023-05-24 00:21:04 +02:00
Matej Janezic 22d263dfaa
release: v0.1.0
First release of `ahab` cli. All functionality from initial design is
now implemented which means we can move on to adding new stuff and
improving existing stuff.
2023-05-24 00:01:18 +02:00
Matej Janezic c63cedab76
chore: add some todos for future ideas 2023-05-24 00:00:20 +02:00
Matej Janezic a625d5f43c
feat: finish postgres cli
Implemented basic wanted functionality for postgres subcommands. We
currently assume that postgres is running in docker-compose project in a
service named "postgresdb". This could be looked at and changed at some
point in the future.
2023-05-24 00:00:06 +02:00
Matej Janezic 7b64d6192a
feat: docker_compose::start can be called with optional containers
Allow for starting just some of the containers. This will be needed for
implementing postgres::import where we'll need to stop all containers
and then only start postgres container.
2023-05-23 23:38:07 +02:00
Matej Janezic 286e16e7ce
feat: finish django cli and add aliases
Implemented basic wanted functionality for django subcommands.

Added single or two letter aliases for all subsubcommands.
2023-05-23 22:49:18 +02:00
Matej Janezic 907740fc5a
feat: finish docker cli
Implement wanted functionality for docker subcommands.
2023-05-23 22:47:23 +02:00
Matej Janezic 9c34f6ff59
chore: disable unused code check
Disable unused code checks while project is in development stage.
2023-05-21 23:48:24 +02:00
Matej Janezic 9f3cc86e3f
feat: add basic error handling
Add anyhow::Result<()> return signature to all scripts and main.
2023-05-21 23:47:02 +02:00
Matej Janezic 4762c991a3
feat: finish docker compose cli
Implemented basic wanted functionality for docker compose subcommands.
We currently assume that docker-compose.yaml file is located in
local/docker/ folder.
2023-05-21 23:41:15 +02:00
Matej Janezic 83c3b05d30
feat: add license, readme and update manifest file
Added empty README
Added MIT license
Updated Cargo.toml with some general info about the project
2023-05-21 23:02:03 +02:00
Matej Janezic eb232a93f8
feat: prepare initial cli layout
Made initial command scopes
d -> docker related commands
dc -> docker compose related commands
dj -> django related commands
pg -> postgres related commands
2023-05-21 22:40:34 +02:00
Matej Janezic f6e9c7953a
feat: initial commit
Add initial dependencies and change gitignore
2023-05-21 22:12:45 +02:00