Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

[feature request] New command for dfclient #806

Open
inoc603 opened this issue Aug 12, 2019 · 1 comment
Open

[feature request] New command for dfclient #806

inoc603 opened this issue Aug 12, 2019 · 1 comment
Assignees
Labels
areas/cli kind/feature kind/feature-request This is a feature request from community for project

Comments

@inoc603
Copy link
Member

inoc603 commented Aug 12, 2019

Why you need it?

dfdaemon and dfget is both meant for the client and is packaged together into dfclient. We can merge them into one single command, e.g. dfclient, to make distribution easier and enable new features like configuration validation proposed in #627 .

How it could be?

dfclient [command] [options...]

commands:

  • daemon: run dfdaemon
  • get: run dfget
  • run [command]: run the given command with dfdaemon as http proxy, e.g. df run curl http://xxx
  • analyze [image or url]: if no argument is given, check dragonfly's configuration and print possible errors or a summary of the configuration. If an image or a url is given, print how the given target will be handled by dragonfly

The original dfdaemon and dfget can be replaced by simple shell scripts that calls corresponding new command to provide backward compatibility.

Other related information

Maybe there's a better name than dfclient. df is ideal but it's already used by a basic linux tool. dragonfly looks great and is easy to pronounce. dfcli of df-cli is also fine, and shorter than dfclient.

@pouchrobot pouchrobot added areas/cli kind/feature kind/feature-request This is a feature request from community for project labels Aug 12, 2019
@yeya24
Copy link
Collaborator

yeya24 commented Aug 13, 2019

Agree with this idea. IMO using one command is much better. We need to discuss more about the sub commands.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
areas/cli kind/feature kind/feature-request This is a feature request from community for project
Projects
None yet
Development

No branches or pull requests

4 participants