MCPcopy
hub / github.com/callumalpass/tasknotes / ensureBasesViewFiles

Method ensureBasesViewFiles

src/main.ts:856–881  ·  view source on GitHub ↗
(
		options: { overwriteExisting?: boolean } = {}
	)

Source from the content-addressed store, hash-verified

854 }
855
856 async ensureBasesViewFiles(
857 options: { overwriteExisting?: boolean } = {}
858 ): Promise<{ created: string[]; updated: string[]; skipped: string[] }> {
859 return ensureDefaultBasesViewFiles(
860 {
861 app: this.app,
862 settings: this.settings,
863 generateTemplate: (commandId) => generateBasesFileTemplate(commandId, this),
864 warn: (message, error) => {
865 if (error === undefined) {
866 tasknotesLogger.warn(message, {
867 category: "configuration",
868 operation: "ensure-bases-view-files",
869 });
870 } else {
871 tasknotesLogger.warn(message, {
872 category: "configuration",
873 operation: "ensure-bases-view-files",
874 error: error,
875 });
876 }
877 },
878 },
879 options
880 );
881 }
882
883 async ensureStarterNote(): Promise<void> {
884 const shouldCreateStarterNote = this.shouldCreateStarterNoteOnStartup;

Calls 3

warnMethod · 0.80

Tested by

no test coverage detected