Skip to content

Commit

Permalink
feat: update naming conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
cstrnt committed Mar 16, 2021
1 parent 8ff182e commit baf305a
Show file tree
Hide file tree
Showing 69 changed files with 46 additions and 55 deletions.
6 changes: 3 additions & 3 deletions compiler/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const options: ts.TranspileOptions = {
}

// Folder names
const SOURCE_FOLDER_NAME = 'development'
const SOURCE_FOLDER_NAME = 'dev'
const DESTINATION_FOLDER_NAME = 'specs'

/**
Expand Down Expand Up @@ -48,10 +48,10 @@ const processSpec = (file: string) => {
}

// Process all the files in the specs directory
fs.readdir('development', (err, files) => {
fs.readdir(SOURCE_FOLDER_NAME, (err, files) => {
if (err) {
SpecLogger.log(
`$Could not find /${DESTINATION_FOLDER_NAME} folder`,
`Could not find /${DESTINATION_FOLDER_NAME} folder`,
Level.ERROR
)
return
Expand Down
8 changes: 4 additions & 4 deletions development/brew.ts → dev/brew.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export const brewCompletionSpec: Fig.Spec = {
],
args: {
variadic: true,
generators: generators.servicesGenerator
generators: brewGenerators.servicesGenerator
}
},
{
Expand All @@ -147,7 +147,7 @@ export const brewCompletionSpec: Fig.Spec = {
],
args: {
variadic: true,
generators: generators.servicesGenerator
generators: brewGenerators.servicesGenerator
}
},
{
Expand All @@ -163,7 +163,7 @@ export const brewCompletionSpec: Fig.Spec = {
],
args: {
variadic: true,
generators: generators.servicesGenerator
generators: brewGenerators.servicesGenerator
}
},
{
Expand All @@ -179,7 +179,7 @@ export const brewCompletionSpec: Fig.Spec = {
],
args: {
variadic: true,
generators: generators.servicesGenerator
generators: brewGenerators.servicesGenerator
}
}
]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
* and customize it!
*/

export const exampleCompletionSpec: Fig.Spec = {
export const completion: Fig.Spec = {
name: "example"
}
9 changes: 0 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"test": "tsc --noEmit",
"build": "ts-node-script compiler/compiler.ts",
"copy": "cp ./specs/*.js ~/.fig/autocomplete/"
"autocomplete": "cp ./specs/*.js ~/.fig/autocomplete/"
},
"author": "",
"license": "ISC",
Expand Down
10 changes: 5 additions & 5 deletions specs/brew.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ var completionSpec = {
],
args: {
variadic: true,
generators: generators.servicesGenerator
generators: brewGenerators.servicesGenerator
}
},
{
Expand All @@ -145,7 +145,7 @@ var completionSpec = {
],
args: {
variadic: true,
generators: generators.servicesGenerator
generators: brewGenerators.servicesGenerator
}
},
{
Expand All @@ -161,7 +161,7 @@ var completionSpec = {
],
args: {
variadic: true,
generators: generators.servicesGenerator
generators: brewGenerators.servicesGenerator
}
},
{
Expand All @@ -177,7 +177,7 @@ var completionSpec = {
],
args: {
variadic: true,
generators: generators.servicesGenerator
generators: brewGenerators.servicesGenerator
}
}
]
Expand All @@ -190,4 +190,4 @@ var completionSpec = {
}
]
};
export {};

2 changes: 1 addition & 1 deletion specs/cargo.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ var completionSpec = {
},
],
};
export {};

2 changes: 1 addition & 1 deletion specs/cat.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ var completionSpec = {
template: "filepaths"
}
};
export {};

2 changes: 1 addition & 1 deletion specs/cd.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var completionSpec = {
template: "folders"
}
};
export {};

// var completionSpec = {
// name: "cd",
// description: "Change the shell working directory",
Expand Down
2 changes: 1 addition & 1 deletion specs/cdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ var completionSpec = {
}
]
};
export {};

2 changes: 1 addition & 1 deletion specs/chmod.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ var completionSpec = {
}
]
};
export {};

2 changes: 1 addition & 1 deletion specs/clear.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ var completionSpec = {
}
]
};
export {};

2 changes: 1 addition & 1 deletion specs/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ var completionSpec = {
},
]
};
export {};

2 changes: 1 addition & 1 deletion specs/conda.js
Original file line number Diff line number Diff line change
Expand Up @@ -523,4 +523,4 @@ var condaCompletionSpec = {
}
]
};
export {};

2 changes: 1 addition & 1 deletion specs/cp.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ var completionSpec = {
}
]
};
export {};

2 changes: 1 addition & 1 deletion specs/curl.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ var completionSpec = {
}
]
};
export {};

2 changes: 1 addition & 1 deletion specs/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ var defaultsCompletionSpec = {
},
]
};
export {};

// Command line interface to a user's defaults.
// Syntax:
// 'defaults' [-currentHost | -host <hostname>] followed by one of the following:
Expand Down
2 changes: 1 addition & 1 deletion specs/dig.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ var completionSpec = {
},
],
};
export {};

2 changes: 1 addition & 1 deletion specs/docker-compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -876,4 +876,4 @@ var completionSpec = {
}
]
};
export {};

2 changes: 1 addition & 1 deletion specs/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ var completionSpec = {
{ name: "volume", description: "Manage volumes" }
]
};
export {};

2 changes: 1 addition & 1 deletion specs/dotslash.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ var completionSpec = {
template: "filepaths"
}
};
export {};

2 changes: 1 addition & 1 deletion specs/expo-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -2110,4 +2110,4 @@ var completionSpec = {
}
]
};
export {};

2 changes: 1 addition & 1 deletion specs/fig.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ var completionSpec = {
}
]
};
export {};

2 changes: 1 addition & 1 deletion specs/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,4 +411,4 @@ var completionSpec = {
},
],
};
export {};

2 changes: 1 addition & 1 deletion specs/gh.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,4 +296,4 @@ var completionSpec = {
{ name: "repo", description: "Create, clone, fork, and view repositories" },
]
};
export {};

2 changes: 1 addition & 1 deletion specs/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -777,4 +777,4 @@ var completionSpec = {
},
]
};
export {};

2 changes: 1 addition & 1 deletion specs/grep.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ var completionSpec = {
}
]
};
export {};

2 changes: 1 addition & 1 deletion specs/head.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ var completionSpec = {
}
]
};
export {};

2 changes: 1 addition & 1 deletion specs/heroku.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@ var completionSpec = {
{ name: "webhooks", description: "list webhooks on an app" }
]
};
export {};

2 changes: 1 addition & 1 deletion specs/kubectl.js
Original file line number Diff line number Diff line change
Expand Up @@ -5838,4 +5838,4 @@ var completionSpec = {
}
]
};
export {};

2 changes: 1 addition & 1 deletion specs/less.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ var completionSpec = {
template: "filepaths"
}
};
export {};

2 changes: 1 addition & 1 deletion specs/ls.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ var completionSpec = {
},
]
};
export {};

2 changes: 1 addition & 1 deletion specs/make.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ var makeCompletionSpec = {
}
]
};
export {};

2 changes: 1 addition & 1 deletion specs/man.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ var completionSpec = {
]
}
};
export {};

2 changes: 1 addition & 1 deletion specs/mkdir.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ var completionSpec = {
}
]
};
export {};

2 changes: 1 addition & 1 deletion specs/mv.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ var completionSpec = {
}
]
};
export {};

2 changes: 1 addition & 1 deletion specs/mysql.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,4 +553,4 @@ var completionSpec = {
}
]
};
export {};

2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"lib": ["ESNext"],
"noImplicitAny": false
},
"include": ["./development/**/*"],
"include": ["./dev/**/*"],
"files": [
"./schemas/fig.d.ts",
"./example.ts"
Expand Down

0 comments on commit baf305a

Please sign in to comment.