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

Migrate 'cmd' to 'main', licence update #97

Merged
merged 4 commits into from
Feb 28, 2018
Merged

Conversation

bobheadxi
Copy link
Member

@bobheadxi bobheadxi commented Feb 26, 2018

🎟️ Ticket(s):


👷 Changes

This is largely a simple code migration. ⏫

  • All command-line functionality now in 'main' package
  • 'inertia daemon' commands are now completely disabled outside of the inertia docker image to prevent someone from inadvertently starting up a daemon locally or, even worse, name one of their remotes daemon and having it conflict with the command 😢
  • Removed all references to the Apache 2.0 licence - we are already under MIT

🔦 Testing Instructions

go install
inertia daemon run # should no longer work

* All command-line functionality now in 'main' package
* 'inertia daemon' commands are now completely disabled outside of the inertia-daemon image
@bobheadxi bobheadxi added the pr: finalized needs review and final approval label Feb 26, 2018
@bobheadxi bobheadxi mentioned this pull request Feb 26, 2018
@bobheadxi bobheadxi changed the title Migrate 'cmd' to 'main' Migrate 'cmd' to 'main', licence update Feb 27, 2018
Copy link
Contributor

@PiggySpeed PiggySpeed left a comment

Choose a reason for hiding this comment

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

Changes look straightforward!

Should we also update the year in the LICENSE file?

@@ -33,7 +33,7 @@ sudo docker run -d --rm \
-p "$PORT":8081 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $HOME:/app/host \
-e DAEMON="true" \
-e INERTIA_DAEMON='true' \
Copy link
Contributor

Choose a reason for hiding this comment

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

Just an observation - it looks like use of " " and ' ' is inconsistent in our shell scripts.

Copy link
Member Author

Choose a reason for hiding this comment

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

That's a good point... I'm not actually sure how interchangeable they are 🤔

Will look into it

Copy link
Member Author

Choose a reason for hiding this comment

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

I think the way we have it now is fine: see this explanation for single vs double quotes in bash

Single for string literals, double for things like "$MYVAR"

Copy link
Contributor

Choose a reason for hiding this comment

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

Cool, thanks for the link!

@bobheadxi
Copy link
Member Author

Thanks for the review @PiggySpeed!

@coveralls
Copy link

coveralls commented Feb 27, 2018

Coverage Status

Coverage remained the same at 32.153% when pulling 3efeb54 on rob/#94-cmd-in-main into e73f8c1 on master.

@bobheadxi
Copy link
Member Author

bobheadxi commented Feb 27, 2018

Thanks for the review @rogermyang! This one will affect your ticket (#72), remember to make sure you are up to date with master when I merge later 😄

@bobheadxi bobheadxi merged commit a51e57e into master Feb 28, 2018
@bobheadxi bobheadxi deleted the rob/#94-cmd-in-main branch February 28, 2018 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: finalized needs review and final approval
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants