Skip to content

Commit

Permalink
changed withfig.com to fig.io
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendan Falk committed May 12, 2021
1 parent 4bbddae commit fc73ff8
Show file tree
Hide file tree
Showing 14 changed files with 423 additions and 215 deletions.
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ labels: "Bug"
Please fill out each section below, otherwise, your issue will be closed. This info allows Fig maintainers to diagnose (and fix!) your issue as quickly as possible.
Useful Links:
- Documentation: https://withfig.com/docs/autocomplete/getting-started
- Documentation: https://fig.io/docs/autocomplete/getting-started
Before opening a new issue, please search existing issues: https://github.com/withfig/autocomplete/issues
-->
Expand All @@ -35,11 +35,11 @@ What happened.

### System Information

*Fig Version:*
_Fig Version:_

*OS:*
_OS:_

*Device:*
_Device:_

### Potential Solution

Expand Down
16 changes: 6 additions & 10 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
---
---
blank_issues_enabled: true
contact_links:
-
about: "Create a new issue in the withfig/fig repo to be directed to the right place"
contact_links:
- about: "Create a new issue in the withfig/fig repo to be directed to the right place"
name: Not an autocomplete issue?
url: "https://github.com/withfig/fig/issues/new/choose"
-
about: "Fig's support knowledge base"
- about: "Fig's support knowledge base"
name: "💬 Forum"
url: "https://forum.withfig.com"
-
about: "Get instant support from the Fig Community Slack"
- about: "Get instant support from the Fig Community Slack"
name: "👋 Slack"
url: "https://waitlist.withfig.com/waitlist"
-
about: "Get support from the Fig team at [email protected]"
- about: "Get support from the Fig team at [email protected]"
name: "📩 Email"
url: "https://tinyurl.com/y4m9zqlw"
2 changes: 1 addition & 1 deletion .github/workflows/update-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
curl https://docs-generator.cstrnt.workers.dev/ > autocomplete/api.md
git config user.email "hello@withfig.com"
git config user.email "hello@fig.io"
git config user.name "Figbot"
git add autocomplete/api.md
Expand Down
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ This Code of Conduct applies within all project spaces, and it also applies when

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at hello@withfig.com. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at hello@fig.io. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project’s leadership.

Expand Down
15 changes: 6 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ We want to make contributing to Fig as easy and transparent as possible, whether
- Submitting feature requests

- Contributing content or feature changes


## Our repos

Expand All @@ -19,18 +18,19 @@ Here are some of our primary repos.

[withfig/fig](https://github.com/withfig/fig): The central repo. All issues taken here.

[withfig/autocomplete](https://github.com/withfig/autocomplete): Collection of all specs for [autocomplete](https://docs.withfig.com/autocomplete). Contribute new specs and update old specs here.
[withfig/autocomplete](https://github.com/withfig/autocomplete): Collection of all specs for [autocomplete](https://fig.io/docs/autocomplete). Contribute new specs and update old specs here.

[withfig/config](https://github.com/withfig/config): Fig's default configuration at install. Contains apps, installation, and update scripts.

## Contributing your own spec

The [autocomplete docs](https://docs.withfig.com/autocomplete) should get you up to speed on how to write a spec and serve as a good reference.
The [autocomplete docs](https://fig.io/docs/autocomplete) should get you up to speed on how to write a spec and serve as a good reference.

A few things to keep in mind when writing your spec:

- Ensure that the argument field is filled for subcommands and options when an argument is required.
- Make sure all generators are written with valid JavaScript.
- [Test your spec](https://docs.withfig.com/autocomplete#testing-your-completion-spec) before submitting a pull request.
- [Test your spec](https://fig.io/docs/autocomplete#testing-your-completion-spec) before submitting a pull request.

**Git Commit Messages**

Expand All @@ -39,19 +39,16 @@ A few things to keep in mind when writing your spec:
- Limit the first line to 72 characters or less
- Reference issues and pull requests liberally after the first line


## Bug reports and feature requests

We use GitHub issues to track public bugs as well as new feature requests. If you have any input, [open a new issue](https://github.com/withfig/fig)! Note that all issues should be filed under the [withfig/fig](https://github.com/withfig/fig) repo, not under independent feature repos.


## License

By contributing, you agree that your contributions will be licensed under its MIT License.


## Questions and support

For product support, visit our [docs](https://withfig.com/docs) and join the [Fig Community](https://figcommunity.slack.com/join/shared_invite/zt-fupa9n8g-sfHm8MyBn1DBaCj8SoIxSA#/) for instant support and discussion.
For product support, visit our [docs](https://fig.io/docs) and join the [Fig Community](https://figcommunity.slack.com/join/shared_invite/zt-fupa9n8g-sfHm8MyBn1DBaCj8SoIxSA#/) for instant support and discussion.

Any unanswered questions or inquiries? We're always open to chat at hello@withfig.com.
Any unanswered questions or inquiries? We're always open to chat at hello@fig.io.
2 changes: 1 addition & 1 deletion dangerfile-invite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ schedule(async () => {
const inviteMarkdown = `
@${username} Hey! Thanks so much for your contribution!
As a token of our appreciation, we've invited you to join the Fig GitHub organization. Accepting means you can display Fig's logo on your Github profile's list of member orgs. We also have a special #contributors channel in our [community Slack](https://withfig.com/community) and we'd love for you to join.
As a token of our appreciation, we've invited you to join the Fig GitHub organization. Accepting means you can display Fig's logo on your Github profile's list of member orgs. We also have a special #contributors channel in our [community Slack](https://fig.io/community) and we'd love for you to join.
Excited to have you in the community!
Expand Down
2 changes: 1 addition & 1 deletion dev/mask.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// To learn more about FIg's autocomplete standard visit: https://withfig.com/docs/autocomplete/building-a-spec#building-your-first-autocomplete-spec
// To learn more about FIg's autocomplete standard visit: https://fig.io/docs/autocomplete/building-a-spec#building-your-first-autocomplete-spec
// var executeShellCommand: Fig.ExecuteShellCommandFunction;

// The below is a dummy example for git. Make sure to change the file name!
Expand Down
2 changes: 1 addition & 1 deletion dev/php.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// To learn more about Fig's autocomplete standard visit: https://withfig.com/docs/autocomplete/building-a-spec#building-your-first-autocomplete-spec
// To learn more about Fig's autocomplete standard visit: https://fig.io/docs/autocomplete/building-a-spec#building-your-first-autocomplete-spec

// The below is a dummy example for git. Make sure to change the file name!
export const completion: Fig.Spec = {
Expand Down
8 changes: 4 additions & 4 deletions schemas/fig.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ declare namespace Fig {
/**
* The icon that is rendered is based on the type, unless overwritten. Icon
* can be a 1 character string, a URL, or Fig's icon protocol (fig://) which lets you generate
* colorful and fun systems icons: https://withfig.com/docs/autocomplete/reference/icon-api
* colorful and fun systems icons: https://fig.io/docs/autocomplete/reference/icon-api
*
* @example
* `A`, `😊`
Expand Down Expand Up @@ -174,7 +174,7 @@ declare namespace Fig {
*
* If your CLI tool takes another CLI command (e.g. time , builtin... ) or a script
* (e.g. python, node) and you would like Fig to continue to provide completions for this
* script, see `isCommand` and `isScript` in {@link {https://withfig.com/docs/autocomplete/api#arg-object | Arg}.
* script, see `isCommand` and `isScript` in {@link {https://fig.io/docs/autocomplete/api#arg-object | Arg}.
*/
loadSpec?: string;
/**
Expand Down Expand Up @@ -342,7 +342,7 @@ declare namespace Fig {
*
* @example
* `python` take one argument which is a `.py` file. If I have a `main.py` file on my desktop and my current working directory is my desktop, if I type `python main.py` Fig will look for a completion spec in `~/Desktop/.fig/main.py.js`
* See our docs for more on this {@link https://withfig.com/docs/autocomplete/autocomplete-for-teams | Fig for Teams}
* See our docs for more on this {@link https://fig.io/docs/autocomplete/autocomplete-for-teams | Fig for Teams}
*/
isScript?: boolean;

Expand All @@ -363,7 +363,7 @@ declare namespace Fig {
}

/**
* @see https://withfig.com/docs/autocomplete/api#generator-object
* @see https://fig.io/docs/autocomplete/api#generator-object
*/
export interface Generator {
/**
Expand Down
4 changes: 2 additions & 2 deletions scripts/create-example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ else
## Using quotes around EOF will remove expansions
# https://superuser.com/questions/1436906/need-to-expand-a-variable-in-a-heredoc-that-is-in-quotes
cat <<EOF >> "$(pwd)/dev/$USER_INPUT_CLI_TOOL.ts"
// To learn more about Fig's autocomplete standard visit: https://withfig.com/docs/autocomplete/building-a-spec#building-your-first-autocomplete-spec
// To learn more about Fig's autocomplete standard visit: https://fig.io/docs/autocomplete/building-a-spec#building-your-first-autocomplete-spec
// The below is a dummy example for git. Make sure to change the file name!
export const completion: Fig.Spec = {
Expand All @@ -44,7 +44,7 @@ export const completion: Fig.Spec = {
description: "Switch branches or restore working tree files",
// If a subcommand or option takes an argument, you must include the args prop, even if it's an empty object (like below)
// If you want to build custom suggestions for arguments check out: https://withfig.com/docs/autocomplete/building-a-spec#making-advanced-suggestions
// If you want to build custom suggestions for arguments check out: https://fig.io/docs/autocomplete/building-a-spec#making-advanced-suggestions
args: {},
options: [
{
Expand Down
51 changes: 25 additions & 26 deletions specs/_examples/trigger.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,30 @@
// To learn more about Fig's autocomplete standard visit: https://withfig.com/docs/autocomplete/building-a-spec#building-your-first-autocomplete-spec
// To learn more about Fig's autocomplete standard visit: https://fig.io/docs/autocomplete/building-a-spec#building-your-first-autocomplete-spec
// The below is a dummy example for git. Make sure to change the file name!
var completionSpec = {
name: "trigger",
description: "The stupid content tracker",
subcommands: [
name: "trigger",
description: "The stupid content tracker",
subcommands: [
{
name: "checkout",
description: "Switch branches or restore working tree files",
// If a subcommand or option takes an argument, you must include the args prop, even if it's an empty object (like below)
// If you want to build custom suggestions for arguments check out: https://fig.io/docs/autocomplete/building-a-spec#making-advanced-suggestions
args: {},
options: [
{
name: "checkout",
description: "Switch branches or restore working tree files",
// If a subcommand or option takes an argument, you must include the args prop, even if it's an empty object (like below)
// If you want to build custom suggestions for arguments check out: https://withfig.com/docs/autocomplete/building-a-spec#making-advanced-suggestions
args: {},
options: [
{
name: ["-b"],
description: "create and checkout a new branch",
args: {
name: "branch",
},
},
],
name: ["-b"],
description: "create and checkout a new branch",
args: {
name: "branch",
},
},
],
options: [
{
name: ["-v", "--version"],
description: "View your current git version",
},
],
],
},
],
options: [
{
name: ["-v", "--version"],
description: "View your current git version",
},
],
};

51 changes: 25 additions & 26 deletions specs/examples/trigger.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,30 @@
// To learn more about Fig's autocomplete standard visit: https://withfig.com/docs/autocomplete/building-a-spec#building-your-first-autocomplete-spec
// To learn more about Fig's autocomplete standard visit: https://fig.io/docs/autocomplete/building-a-spec#building-your-first-autocomplete-spec
// The below is a dummy example for git. Make sure to change the file name!
var completionSpec = {
name: "trigger",
description: "The stupid content tracker",
subcommands: [
name: "trigger",
description: "The stupid content tracker",
subcommands: [
{
name: "checkout",
description: "Switch branches or restore working tree files",
// If a subcommand or option takes an argument, you must include the args prop, even if it's an empty object (like below)
// If you want to build custom suggestions for arguments check out: https://fig.io/docs/autocomplete/building-a-spec#making-advanced-suggestions
args: {},
options: [
{
name: "checkout",
description: "Switch branches or restore working tree files",
// If a subcommand or option takes an argument, you must include the args prop, even if it's an empty object (like below)
// If you want to build custom suggestions for arguments check out: https://withfig.com/docs/autocomplete/building-a-spec#making-advanced-suggestions
args: {},
options: [
{
name: ["-b"],
description: "create and checkout a new branch",
args: {
name: "branch",
},
},
],
name: ["-b"],
description: "create and checkout a new branch",
args: {
name: "branch",
},
},
],
options: [
{
name: ["-v", "--version"],
description: "View your current git version",
},
],
],
},
],
options: [
{
name: ["-v", "--version"],
description: "View your current git version",
},
],
};

Loading

0 comments on commit fc73ff8

Please sign in to comment.