Skip to content

Commit 940eef2

Browse files
committed
Alphabetize methods in commands.ts
1 parent 698751b commit 940eef2

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

packages/office-addin-manifest/src/commands.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@ export async function info(path: string) {
1313
}
1414
}
1515

16+
function logManifestInfo(path: string, manifest: manifestInfo.ManifestInfo) {
17+
console.log(`Manifest: ${path}`);
18+
console.log(` Id: ${manifest.id || ""}`);
19+
console.log(` Name: ${manifest.displayName || ""}`);
20+
console.log(` Provider: ${manifest.providerName || ""}`);
21+
console.log(` Type: ${manifest.officeAppType || ""}`);
22+
console.log(` Version: ${manifest.version || ""}`);
23+
console.log(` Default Locale: ${manifest.defaultLocale || ""}`);
24+
console.log(` Description: ${manifest.description || ""}`);
25+
}
26+
1627
export async function modify(path: string, command: commnder.Command) {
1728
try {
1829
const guid: string | undefined = (command.guid) ? command.guid : undefined;
@@ -27,15 +38,4 @@ export async function modify(path: string, command: commnder.Command) {
2738
} catch (err) {
2839
console.error(`Error: ${err}`);
2940
}
30-
}
31-
32-
function logManifestInfo(path: string, manifest: manifestInfo.ManifestInfo) {
33-
console.log(`Manifest: ${path}`);
34-
console.log(` Id: ${manifest.id || ""}`);
35-
console.log(` Name: ${manifest.displayName || ""}`);
36-
console.log(` Provider: ${manifest.providerName || ""}`);
37-
console.log(` Type: ${manifest.officeAppType || ""}`);
38-
console.log(` Version: ${manifest.version || ""}`);
39-
console.log(` Default Locale: ${manifest.defaultLocale || ""}`);
40-
console.log(` Description: ${manifest.description || ""}`);
41-
}
41+
}

0 commit comments

Comments
 (0)