From 373b8f9e00b57d70c32d45f8d765836505a1e527 Mon Sep 17 00:00:00 2001 From: Suhas Karanth Date: Wed, 29 Mar 2023 12:48:12 +0530 Subject: [PATCH] Update usage documentation (#197) --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index dcb2e4e..34ce210 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,6 @@ older Go versions, use the pre-built binaries published with ``` moq [flags] source-dir interface [interface2 [interface3 [...]]] - -fmt string go pretty-printer: gofmt, goimports or noop (default gofmt) -out string @@ -37,15 +36,17 @@ moq [flags] source-dir interface [interface2 [interface3 [...]]] package name (default will infer) -rm first remove output file, if it exists + -skip-ensure + suppress mock implementation check, avoid import cycle if mocks generated outside of the tested package -stub return zero values when no mock implementation is provided, do not panic - -skip-ensure - suppress mock implementation check, avoid import cycle if mocks - generated outside of the tested package - -with-resets - generate functions to facilitate resetting calls made to a mock + -version + show the version for moq + -with-resets + generate functions to facilitate resetting calls made to a mock Specifying an alias for the mock is also supported with the format 'interface:alias' + Ex: moq -pkg different . MyInterface:MyMock ```