Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'boxhome' of github.com:onuruluag/toolbox into boxhome
Added optional boxhome argument to create command.
Boxhome is concatenated with homedir in order to be under host's home dir.
Homedir is still mounted. No worries.
Being under host's home enables easy file sharing, and prevents privilage issues.
When boxhome argument is not given, system works as before (uses user's home dir):
  • Loading branch information
onuruluag committed Mar 17, 2021
2 parents d1e3a89 + 9da3828 commit 72185a3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ func init() {
"",
"Create a toolbox container with a different home path than the host.")

flags.StringVarP(&createFlags.boxhome,
"boxhome",
"b",
"",
"Create a toolbox container with a different home path than the host.")

createCmd.SetHelpFunc(createHelp)
rootCmd.AddCommand(createCmd)
}
Expand Down

0 comments on commit 72185a3

Please sign in to comment.