Skip to content

Commit

Permalink
feat(manager): add GitManager (#1268)
Browse files Browse the repository at this point in the history
Co-authored-by: Baptiste Morelle <[email protected]>
  • Loading branch information
angeloashmore and bapmrl authored Feb 2, 2024
1 parent 6b315ec commit fda3f09
Show file tree
Hide file tree
Showing 23 changed files with 1,285 additions and 92 deletions.
4 changes: 4 additions & 0 deletions packages/manager/src/managers/SliceMachineManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import { TelemetryManager } from "./telemetry/TelemetryManager";
import { buildPrismicRepositoryAPIEndpoint } from "../lib/buildPrismicRepositoryAPIEndpoint";
import { DocumentationManager } from "./documentation/DocumentationManager";
import { SliceTemplateLibraryManager } from "./sliceTemplateLibrary/SliceTemplateLibraryManager";
import { GitManager } from "./git/GitManager";

type SliceMachineManagerGetStateReturnType = {
env: {
Expand Down Expand Up @@ -116,6 +117,7 @@ export class SliceMachineManager {
telemetry: TelemetryManager;
user: UserManager;
versions: VersionsManager;
git: GitManager;

constructor(args?: SliceMachineManagerConstructorArgs) {
// _prismicAuthManager must be set at least before UserManager
Expand Down Expand Up @@ -143,6 +145,8 @@ export class SliceMachineManager {

this.telemetry = new TelemetryManager(this);

this.git = new GitManager(this);

this.cwd = args?.cwd ?? process.cwd();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const omitProcedures = defineOmits<SliceMachineManager>()([
"versions._sliceMachineManager",
"documentation._sliceMachineManager",
"sliceTemplateLibrary._sliceMachineManager",
"git._sliceMachineManager",
"getSliceMachinePluginRunner",
"getPrismicAuthManager",
]);
Expand Down
Loading

0 comments on commit fda3f09

Please sign in to comment.