Commit Graph

3 Commits

Author SHA1 Message Date
Mark Thomas
ddecddf074 commitcloud: improve specification of workspace names
Summary:
Replace the `-w` option of the commit cloud commands that process workspace
names with general options of the form:

 * `-u` or `--user` - to select the workspaces of a particular user.
 * `-w` or `--workspace` - to select a particular workspace for that user.

A (hidden) `--raw-workspace` option is provided to allow use a workspace
by its exact name, should that be needed.

The `-w` option still accepts full user workspaces, but shows a warning.

These options apply uniformly to any command that takes a workspace.

Reviewed By: liubov-dmitrieva

Differential Revision: D13730839

fbshipit-source-id: d1b884b100caf909619511db4861eb1b880a0d3e
2019-01-21 03:33:31 -08:00
Saurabh Singh
6317ba0ca2 amend: replace with the fbamend extension
Summary:
The functionality we care about is provided by the `fbamend`
extension. Therefore, lets replace the `amend` extension with the `fbamend`
extension.

Reviewed By: farnz

Differential Revision: D10320739

fbshipit-source-id: 5700d39f488777fcc4033f60ce0a51cda15ef2ad
2018-10-11 06:59:23 -07:00
Mark Thomas
7f7497d6c9 commitcloud: disambiguate usernames in default workspace names
Summary:
The default workspace name is `user/<shortname>/default`.  This is ambiguous,
as all of:
* fred.bloggs@example.com
* fred.smith@example.com
* fred@example.org
are rendered as `fred`.

This changes the default to use the full email, and provides a new config
option `commitcloud.email_domain`, which defines a single domain that is
dropped.

Reviewed By: liubov-dmitrieva

Differential Revision: D8998491

fbshipit-source-id: e108e116e82d3acc9f1ae1584c63266799fa8cc5
2018-08-01 08:02:35 -07:00