Skip to content

Commit 6e7b0e1

Browse files
committed
kepctl: Move command logic into pkg/
Signed-off-by: Stephen Augustus <[email protected]>
1 parent de95e75 commit 6e7b0e1

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

cmd/kepctl/cmd/root.go renamed to pkg/kepctl/commands/commands.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package cmd
17+
package commands
1818

1919
import (
2020
"fmt"

cmd/kepctl/cmd/create.go renamed to pkg/kepctl/commands/create.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package cmd
17+
package commands
1818

1919
import (
2020
"github.com/pkg/errors"
@@ -98,7 +98,7 @@ func init() {
9898
}
9999

100100
func runCreate(opts *proposal.CreateOpts) error {
101-
rc, err := repo.New(opts.RepoOpts.RepoPath)
101+
rc, err := repo.New(opts.Repo.BasePath)
102102
if err != nil {
103103
return errors.Wrap(err, "creating repo client")
104104
}

cmd/kepctl/cmd/promote.go renamed to pkg/kepctl/commands/promote.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package cmd
17+
package commands
1818

1919
import (
2020
"github.com/pkg/errors"

cmd/kepctl/cmd/query.go renamed to pkg/kepctl/commands/query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
package cmd
17+
package commands
1818

1919
import (
2020
"fmt"

0 commit comments

Comments
 (0)