onepub-dev / onepub-dev/dcli

Added a 'deploy' command to the dcil interface

Open
#174 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
Dart
Stars
265
Forks
30
PR merge metrics
No merged PRs in 30d

Description

Often times I want to compile, deploy to a remote system and run a dcli script.

the ideal is to create a new command deploy that can do these three actions in one line

dcli deploy bin/someapp.dart --remote host.domain.com.au  --protocol=<ssh| ftp |http|...> --port=<optional port> --path=<remote path> --run --- <args to someapp>

So the command would
compile bin/someapp.dart
copy it to 'host.domain.com.au' using the selected protocol (defaults to ssh)
uses the --port which defaults based on protocol
the command is copied to the <remote path>
runs the command on the remote host passing in the <args to someapp>

The remote run will only work with ssh
Are the other protocols worth supporting?

It would be nice if we could save the arguments to a config file associated with the script and have an option to re-use the configured commands.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name files or tests; start by locating the dcli command interface and the existing compilation and remote-copy entry points. Clarify the supported protocol scope, SSH-only execution behavior, argument forwarding, and config-file reuse before defining what completion and tests should cover.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
cli, devops
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.