Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add app arg cli subcommand #1356

Merged
merged 4 commits into from
Sep 14, 2022
Merged

Add app arg cli subcommand #1356

merged 4 commits into from
Sep 14, 2022

Conversation

ersonp
Copy link
Contributor

@ersonp ersonp commented Sep 14, 2022

Did you run make format && make check?

Fixes #

Changes:

  • Added subcommand arg to skywire-cli visor app
  • Moved subcommand autoconnect from skywire-cli visor app to skywire-cli visor app arg

How to test this PR:

  1. Run a visor ./skywire-visor -c skywire-config.json
  2. Run the command ./skywire-cli visor app arg passcode vpn-client test and check the config
  3. Run the command ./skywire-cli visor app arg passcode vpn-client remove and check the config
  4. Run the command ./skywire-cli visor app arg netifc vpn-server test and check the config
  5. Run the command ./skywire-cli visor app arg netifc vpn-server remove and check the config
  6. Run the command ./skywire-cli visor app arg autostart vpn-server true and check the config
  7. Run the command ./skywire-cli visor app arg killswitch vpn-server true and check the config
  8. Run the command ./skywire-cli visor app arg secure vpn-server true and check the config
  9. Run the command ./skywire-cli visor app arg autostart vpn-server false and check the config
  10. Run the command ./skywire-cli visor app arg killswitch vpn-server false and check the config
  11. Run the command ./skywire-cli visor app arg secure vpn-server false and check the config

Thic commit contains the new subcommand arg which is used to change various args of the apps.

This subcommand setAppAutostartCmd which was previously directly under app is now also moved under arg.

The other commands contains setAppAutostartCmd, setAppKillswitchCmd and setAppSecureCmd whcih take the app name and on/off as arguemnts.

The subcommands setAppPasscodeCmd and setAppNetworkInterfaceCmd take app name and a string as their args and have a special arg named remove that removes the arg from the said app.
@0pcom 0pcom self-requested a review September 14, 2022 17:36
Copy link
Collaborator

@0pcom 0pcom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@0pcom 0pcom merged commit a3e4954 into skycoin:develop Sep 14, 2022
jdknives pushed a commit that referenced this pull request Sep 15, 2022
* Add new subcommand arg to visor app

Thic commit contains the new subcommand arg which is used to change various args of the apps.

This subcommand setAppAutostartCmd which was previously directly under app is now also moved under arg.

The other commands contains setAppAutostartCmd, setAppKillswitchCmd and setAppSecureCmd whcih take the app name and on/off as arguemnts.

The subcommands setAppPasscodeCmd and setAppNetworkInterfaceCmd take app name and a string as their args and have a special arg named remove that removes the arg from the said app.

* Minor change

* Add changelog

* Minor changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants